|
[多端开发]
api.pageParam 获取不到数据
[复制链接]
我在index.stml中打开 more.stml
index.stml :
goto_more(item){
alert(item.detail); // 能看到数据
api.openWin({
name: 'more',
url:'./more.stml',
pageParam: item.detail, //把数据传给more.stml
})
},
more.stml:
apiready(){//like created
alert(JSON.stringify(api.pageParam)) // 打印出来的对象是 {}
},
api.pageParam应该在什么阶段调用??
求大神指导。。。
|
|