KKJSBridge icon indicating copy to clipboard operation
KKJSBridge copied to clipboard

ajax同步请求这里为啥直接弹alert了大佬

Open wubing3688 opened this issue 2 years ago • 0 comments

/** * 同步调用方法 * @param module 模块 * @param method 方法 * @param data 数据 */ KKJSBridge.prototype.syncCall = function (module, method, data) { function call() { var message = { module: module || 'default', method: method, data: data, }; var messageString = JSON.stringify(message); var response = window.prompt("KKJSBridge", messageString); return response ? JSON.parse(response) : null; }

wubing3688 avatar Apr 01 '22 03:04 wubing3688