2016年1月6日

摘要: var doc = document.body || document.documentElement;var _onerror = Onerror('');var Onerror = function(url){ this.init(url);}Onerror.prototype.init = f... 阅读全文
posted @ 2016-01-06 11:25 shenggen 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 有的时候有我有N个AJAX请求,第下个请求可能要依赖上个请求的返回值, 可以用$.ajax("test1.php").then(function(data) {// data 是 test1.php 的返回值return $.ajax("test2.php");}).then(function(da... 阅读全文
posted @ 2016-01-06 11:19 shenggen 阅读(1541) 评论(0) 推荐(0) 编辑

导航