仿互站小程序

This commit is contained in:
Drawfans
2020-06-09 16:17:23 +08:00
commit 7bfd53851e
321 changed files with 22890 additions and 0 deletions

11
vant/wxs/utils.wxs Normal file
View File

@@ -0,0 +1,11 @@
var bem = require('./bem.wxs').bem;
var memoize = require('./memoize.wxs').memoize;
function isSrc(url) {
return (url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0)
};
module.exports = ({
bem: memoize(bem),
isSrc: isSrc,
memoize: memoize,
});