标签:style alt url 方法 bsp 页面 nav 获取 nload
比如从index。wxml跳转到aaa.wxml
<navigator url = "../aaa/aaa?id=1" ></navidator> //传到aaa。wxml的时候传过去的值为id=1,则需要在aaa.wxml 的js获取到id=1
Page({ data: { id:‘‘ }, onLoad: function (options){ var that = this; that.setData({ id: options.id }) console.log(that.data.id) }})标签:style alt url 方法 bsp 页面 nav 获取 nload
原文地址:http://www.cnblogs.com/liuqingxia/p/7844990.html