以下代码在360安全浏览器5 和 6 版本中 可用
<script>var check360browser={//如果是360 浏览器的话"ok":function (){//这里是判断360成功之后的代码alert('js -> 360');},"try360SE":function (callback) { var ret = false, img = new Image(); img.src = 'res://360se.exe/2/2025'; img.onload = function() { ret = true; } setTimeout(function() { if(ret==true){check360browser.ok();}else{ret=check360browser.try360SE_2();if(ret){check360browser.ok();}}}, 100); },"try360SE_2":function (){ var is360 = false; if(window.navigator.userAgent.indexOf('Chrome')!=-1){ if(window.navigator.webkitPersistentStorage){ }else{ return true; } } }}check360browser.try360SE();</script>
新闻热点
疑难解答