Android编程示例之——WebView,判断JavaScript引擎是V8还是JavaScriptCore
1),Html页面设计:if(window.devicePixelRatio){//IfWebKitbrowservarst=escape(navigator.javaEnabled.toString());if(st==='function%20javaEnabled%28%29%20%7B%20%5Bnative%20code%5D%20%7D'){document.write('V8dete