JS给APP传输信息 以下方法兼容IOS和安卓 callMobile(parameters,messageHandlerName) { //handlerInterface由iOS addScriptMessageHandler与andorid addJavascriptInterface 代码注入而来。 if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { // alert('ios') window