wxml里面调用函数
<wxs module="m1"> var foo = "'hello world' from tools.wxs"; var bar = function (d) { return d; } module.exports = ...
<wxs module="m1"> var foo = "'hello world' from tools.wxs"; var bar = function (d) { return d; } module.exports = ...
console.log(['x', 'a'].indexOf('a')); // 1 console.log('dbac'.indexOf('aa')); // -1