示例:
A页面-->跳转B页面 并传递type=1
A页面wxml:
<navigator url="B页面?type=1" >跳转到新页面B啦</navigator>
B页面js:
Page({
onLoad: function(options) {
console.log(options);
this.setData({
type: options.type
})
}
})
示例:
A页面-->跳转B页面 并传递type=1
A页面wxml:
<navigator url="B页面?type=1" >跳转到新页面B啦</navigator>
B页面js:
Page({
onLoad: function(options) {
console.log(options);
this.setData({
type: options.type
})
}
})