摘要:/** * ajax 全局处理 * @author:DragonetYu * 2017-09-28 */ ;(function(){ //过滤所有ajax $.ajaxPrefilter("*", function(options, originalOptions, jqXHR) { options.beforeSend = ajaxBeforeSend...
阅读全文
随笔分类 - javascript
实时记录分享
摘要:/** * ajax 全局处理 * @author:DragonetYu * 2017-09-28 */ ;(function(){ //过滤所有ajax $.ajaxPrefilter("*", function(options, originalOptions, jqXHR) { options.beforeSend = ajaxBeforeSend...
阅读全文
摘要:String.prototype.trim = function() { return this.replace(/(^\s*)(\s*$)/g, ''); } /** * 检验数据 * @author:DragonetYu * 2017-09-27 * 依赖 jquery */ var _checkFilter = { /** * 通过id 检验val 的值...
阅读全文
|