if(window.WebSocket){
console.log("这个浏览器支持WebSocket");
}else{
console.log("这个浏览器不支持WebSocket");
}
转载于:https://my.oschina.net/fuluS/blog/330167
if(window.WebSocket){
console.log("这个浏览器支持WebSocket");
}else{
console.log("这个浏览器不支持WebSocket");
}
转载于:https://my.oschina.net/fuluS/blog/330167