socket 这里的e是什么?里面的属性分别是什么?
socket=newWebSocket(host,protocols);socket.onopen=function(e){socket_connected=true;v...
socket = new WebSocket(host, protocols);
socket.onopen = function(e){
socket_connected = true;
var i
for(i in eval(e)){
xprint('<span>【socket connected】</span>:'+i+':'+e[i]);
}
};
【socket connected】:stopPropagation:function stopPropagation() {
[native code]
}
【socket connected】:stopImmediatePropagation:function stopImmediatePropagation() {
[native code]
}
【socket connected】:preventDefault:function preventDefault() {
[native code]
}
【socket connected】:initEvent:function initEvent() {
[native code]
}
【socket connected】:getPreventDefault:function getPreventDefault() {
[native code]
}
【socket connected】:type:open
【socket connected】:target:[object WebSocket]
【socket connected】:currentTarget:[object WebSocket]
【socket connected】:eventPhase:2
【socket connected】:bubbles:false
【socket connected】:cancelable:false
【socket connected】:defaultPrevented:false
【socket connected】:isTrusted:true
【socket connected】:timeStamp:1391066428929564
【socket connected】:originalTarget:[object WebSocket]
【socket connected】:explicitOriginalTarget:[object WebSocket]
【socket connected】:NONE:0
【socket connected】:CAPTURING_PHASE:1
【socket connected】:AT_TARGET:2
【socket connected】:BUBBLING_PHASE:3
【socket connected】:ALT_MASK:1
【socket connected】:CONTROL_MASK:2
【socket connected】:SHIFT_MASK:4
【socket connected】:META_MASK:8 展开
socket.onopen = function(e){
socket_connected = true;
var i
for(i in eval(e)){
xprint('<span>【socket connected】</span>:'+i+':'+e[i]);
}
};
【socket connected】:stopPropagation:function stopPropagation() {
[native code]
}
【socket connected】:stopImmediatePropagation:function stopImmediatePropagation() {
[native code]
}
【socket connected】:preventDefault:function preventDefault() {
[native code]
}
【socket connected】:initEvent:function initEvent() {
[native code]
}
【socket connected】:getPreventDefault:function getPreventDefault() {
[native code]
}
【socket connected】:type:open
【socket connected】:target:[object WebSocket]
【socket connected】:currentTarget:[object WebSocket]
【socket connected】:eventPhase:2
【socket connected】:bubbles:false
【socket connected】:cancelable:false
【socket connected】:defaultPrevented:false
【socket connected】:isTrusted:true
【socket connected】:timeStamp:1391066428929564
【socket connected】:originalTarget:[object WebSocket]
【socket connected】:explicitOriginalTarget:[object WebSocket]
【socket connected】:NONE:0
【socket connected】:CAPTURING_PHASE:1
【socket connected】:AT_TARGET:2
【socket connected】:BUBBLING_PHASE:3
【socket connected】:ALT_MASK:1
【socket connected】:CONTROL_MASK:2
【socket connected】:SHIFT_MASK:4
【socket connected】:META_MASK:8 展开
1个回答
2014-01-30
展开全部
e 是返回的资料。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询