socket.io找不到方法connect
html在加入<script src=“http://cdn.socket.io/stable/socket.io.js”></script>后
socket = io.connect(null); 显示错误io没有connect alert(io.hasOwnProperty(“connect”)); 也显示false
html应该不用泡在服务器环境下吧 求原因
2 回复
socket(“connect”,callback)