摘要: /** * 初始化socket **/ function initSocket(index_host){//端口号 if( !window.WebSocket ){ console.log("浏览器不支持websocket"); return false; } webSocket = new WebSocket("ws://"+index_host+"/hsms/socket/... 阅读全文