摘要:
var doc = document.body || document.documentElement;var _onerror = Onerror('');var Onerror = function(url){ this.init(url);}Onerror.prototype.init = f... 阅读全文
摘要:
有的时候有我有N个AJAX请求,第下个请求可能要依赖上个请求的返回值, 可以用$.ajax("test1.php").then(function(data) {// data 是 test1.php 的返回值return $.ajax("test2.php");}).then(function(da... 阅读全文