随笔分类 -  前端 / 小程序

摘要:uniapp开发,vue文件 微信小程序方式 let funName = 'testFun'; this[funName]() H5方式 let funName = 'testFun'; eval("this."+funName+"()"); 调用的是 testFun方法 methods: { te 阅读全文
posted @ 2025-04-09 10:57 程序员の奇妙冒险 阅读(45) 评论(0) 推荐(0)
摘要:<button bindtap="tomap" class="cu-btn line-blue sm">获取地址</button> tomap: function() { var t = this; wx.authorize({ scope: "scope.userLocation", succes 阅读全文
posted @ 2025-04-09 10:55 程序员の奇妙冒险 阅读(72) 评论(0) 推荐(0)