欢迎光临
感谢一路有你

wxml里面调用函数

如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
 
<wxs module="m1"> 
var foo = "'hello world' from tools.wxs"; 
var bar = function (d) { 
  return d; 
} 
module.exports = { 
  FOO: foo, 
  bar: bar, 
}; 
module.exports.msg = "some msg"; 
</wxs> 
<view> {{m1.msg}} </view>

 

赞(0) 打赏
未经允许不得转载:王明昌博客 » wxml里面调用函数
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏