调试不支持string以外得类型
传值问题https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/mp-message-management/subscribe-message/sendMessage.html [图片]这个data要怎么传值,才正确?
2023-05-05你好!请问解决了吗?
web-view在Redmi 4armeabi-v7a上无法获得传入参数手机型号 Redmi 4armeabi-v7a 运行系统 23 微信版本 6.6.5 基础库版本 1.9.98 往返耗时 384ms 连接方式 Wi-Fi <web-view src="https://ssss.ss/api/test.php?t={{t2}}&time={{time}}#wechat_redirect" > </web-view> data: { t2: app.globalData.t2 ||'', time: (new Date()).valueOf() }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { if(options.t){ console.log('options.t:' + options.t) this.setData({ t2: options.t }) } }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { this.setData({ t2: app.globalData.t2 }) }, /** * 生命周期函数--监听页面显示 */ onShow: function () { this.setData({ t2: app.globalData.t2 }) }, 无论是在哪个方法中,还是用options或globaldata来传值, 在test.php文件中都无法得到t2的值,都是为空, 如果这样 data: { t2: 'asdf', time: (new Date()).valueOf() }, 则就能得到t2的值为asdf 即只要想通过options或globalData或getStorageSyn来传变量就不行,设置一个常量可以。 但这个在大多数的手机上都可以, 现在测到在以上机型不能正常传值。 可能是一个BUG。
2018-11-02