window.external.notify() 与 UglifyJS 压缩优化冲突
摘要:
近期研究了一下 UglifyJs 对 JS 代码的压缩,发现 UglifyJS 压缩后,无法调用 window.external.notify() 方法,JS 代码如下:function MyNotify () { try{ alert("Notify"); window.external.notify("Notify"); } catch (e){ alert(e.message); }}function MyNotifyCompressed(){ try { alert("Notify"), window.ex... 阅读全文