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