摘要: Ajax封装 问题:发送一次请求代码过多,发送多次请求代码冗余且重复 解决方案:将请求代码封装到函数中,发送请求时调用函数即可。 ajax({ type: 'get', url: 'http://www.example.com', success: function(data){ console.l 阅读全文
posted @ 2020-12-09 15:37 actorhuang 阅读(181) 评论(0) 推荐(1) 编辑