tool/fetch

fetch请求模块
Source:

Methods

(inner) get(url)

Source:
get fetch请求
Example
get('/api/getData?pageSize=10&pageNum=1')
Parameters:
Name Type Description
url string 请求的url

(inner) post(params)

Source:
post fetch请求
Example
post({url:'/api/postData',data:{pageSize:10,pageNum:1})
Parameters:
Name Type Description
params object 请求必要的参数