APP.vue下
onLaunch: function(option) {
//option为object类型,会序列化上个页面传递的参数
console.log("onlanch show");
var that = this;
FvvUniTTS.init(callback => {}, 'com.iflytek.speechcloud');
plus.globalEvent.addEventListener(
'newintent',
function() {
that.checkargu(); //plus.runtime.arguments 获取参数
}
);
},
lizhihao
app第一次启动 在app.vue里面的onshow方法里面 ,代码进入不到 plus.globalEvent.addEventListener里面。第二次就可以了,这是啥原因啊
2021-09-01 12:42
p***@outlook.com
没用
2023-02-15 15:22