var f = false; try { window.external.twExtSendMessage2(); f = true } catch (g) {} if(f) { alert('是360浏览器'); }