摘要:
# 回调地狱 - 因为$.ajax()嵌套过多,导致回调地狱,形成三角形代码 ```js $.ajax({ url: 'https://www.baidu.com',//随便写的地址,不能使用 type: 'GET', success: function (res) { $.ajax({ url: 阅读全文
摘要:
# jQuery工具方法 - 1.$.type() 判断数据类型 $.isArray() $.isFunction() $.isWindow() ```js console.log($.type(undefined));//undefined console.log($.type('abc'));/ 阅读全文