以下代碼在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>