Promise
promise 封装 ajax,并且 promise 的链式调用的示例
let request = function (url, type = 'get', data = '', msg = '请求失败') { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
let request = function (url, type = 'get', data = '', msg = '请求失败') { |