1.0.8 • Published 4 years ago

ajax-wx v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
4 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

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago