mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
a0f51ba901
commit
4bb9ed7ca4
@ -122,7 +122,7 @@ Volcanos("misc", {Message: function(event, can) { var msg = {}
|
||||
GET: function(can, url, cb) { var xhr = new XMLHttpRequest()
|
||||
xhr.open(msg._method||web.GET, url), xhr.onreadystatechange = function() { if (xhr.readyState != 4) { return }
|
||||
if (xhr.status == 200) { return can.base.isFunc(cb) && cb(xhr.responseText) } can.misc.Warn(xhr.status, res, url, form)
|
||||
} try { xhr.send() } catch(e) { can.misc.Warn(e) }
|
||||
}; try { xhr.send() } catch(e) { can.misc.Warn(e) }
|
||||
},
|
||||
WSS: function(can, args, cb, onopen, onclose, onerror) { if (can.user.isIE) { return }
|
||||
var url = location.protocol.replace(ice.HTTP, "ws")+"//"+location.host+"/space/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user