Because the value that post must be JSON and NEVER be null window.webkit.messageHandlers.goback.postMessage("body":"ok"); // postMessage 参数必填不能为空且是 JSON 来源:oschina链接:https://my.oschina.net/jack088/blog/4505647 标签 webkit