onShow: function () {
var args= plus.runtime.arguments;
if(args){
console.log( "处理args参数,如直达到某新页面等onShow " );
console.log( args );
}
},
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.5
HBuilderX类型: 正式
HBuilderX版本号: 2.8.0
手机系统: iOS
手机系统版本号: iOS 13.4
手机厂商: 模拟器
手机机型: ip11
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
onShow: function () {
var args= plus.runtime.arguments;
if(args){
console.log( "处理args参数,如直达到某新页面等onShow " );
console.log( args );
}
},
无
无
无
var args= plus.runtime.arguments;
if(args){
console.log( "处理args参数,如直达到某新页面等onShow " );
console.log( args );
}
打印出来的结果
00:36:08.591 [LOG] : 处理args参数,如直达到某新页面等onShow at App.vue:145
00:36:08.616 [LOG] : {"name":"","path":"","query":"","id":0} at App.vue:146
链接:hbuilder://pages/goods/goodsDetailed?pro_id=657
cc_dalao
可以的
2022-06-01 18:41