ios:
[bridge sendToScript:@"tip" arg1:@"hello cocos"];
js:
native.bridge.onNative = (arg0: string, arg1: string)=>{
console.log(“收到来自xcode的消息”,arg0,arg1);
};
报错:
15:00:18 [ERROR]: JS: tip does not exist
ios:
[bridge sendToScript:@"tip" arg1:@"hello cocos"];
js:
native.bridge.onNative = (arg0: string, arg1: string)=>{
console.log(“收到来自xcode的消息”,arg0,arg1);
};
报错:
15:00:18 [ERROR]: JS: tip does not exist
我就是看的这个写的,完全不知道啥原因?
已解决!!!