init
This commit is contained in:
12
fuintUniapp/components/wxs/utils.wxs
Normal file
12
fuintUniapp/components/wxs/utils.wxs
Normal file
@@ -0,0 +1,12 @@
|
||||
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