KKJSBridge
KKJSBridge copied to clipboard
ajax同步请求这里为啥直接弹alert了大佬
/** * 同步调用方法 * @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; }