标签:浏览器 class typeof uil type alert keyword socket com
if (typeof WebSocket != ‘undefined‘) { alert("support") }
//or 解决android不支持也存在WebSocket属性
if (!!window.WebSocket && window.WebSocket.prototype.send)
{alert("support") }
标签:浏览器 class typeof uil type alert keyword socket com
原文地址:https://www.cnblogs.com/bigstone/p/8876188.html