1.0.8 • Published 3 years ago

ajax-wx v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

使用

import ajaxWx from "ajax-wx";

const wxAjax = new ajaxWx ({
    baseUrl: "http://127.0.0.1:10086/"
})

//...
export const getOpenId = params => wxAjax.post ("https://www.baidu.com/", params)
//...

// 拦截器
wxAjax.interceptors.request = (req)=>{
    return req
}
wxAjax.interceptors.response = (res)=>{
    return res
}
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago