const http = 'http://47.94.4.201/'
function apiGet(url, type, data) {
return new Promise((resolve, reject) => {
$.ajax({
url: http + url,
type: type,
data: data,
async: false,
success: function (res) {
resolve(res)
}
})
})
}
jq封装ajax请求
最新推荐文章于 2024-07-30 10:56:44 发布