如何实现微信小程序url传值
时间:2020-09-07 19:00:07
作者:重庆seo小潘
来源:
如何实现微信小程序url传值? 1:将参数加在url后面 2:在onload里面获取 onLoad: function (options) {var that = this;var id = options.id //获取值that.id = idvar class_id = options.class_id//在这个地方指定that.class_id = class_idvar position =
如何实现微信小程序url传值?
1:将参数加在url后面
2:在onload里面获取
onLoad: function (options) {var that = this;var id = options.id //获取值that.id = idvar class_id = options.class_id//在这个地方指定that.class_id = class_idvar position = options.positionthat.position = positionthat.getSubject();},3:获取使用
相关推荐:小程序教程
以上就是如何实现微信小程序url传值的详细内容,更多请关注小潘博客其它相关文章!