仿互站小程序
This commit is contained in:
11
vant/wxs/utils.wxs
Normal file
11
vant/wxs/utils.wxs
Normal 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,
|
||||
});
|
Reference in New Issue
Block a user