默认并发数为 10,但支持自定义并发数
import {request, setConfig} from './wx-promise-request';
setConfig({
concurrency: 5,
})
request({
url: 'test.php',
})
.then(res => console.log(res))
.catch(error => console.log(error));
默认并发数为 10,但支持自定义并发数
import {request, setConfig} from './wx-promise-request';
setConfig({
concurrency: 5,
})
request({
url: 'test.php',
})
.then(res => console.log(res))
.catch(error => console.log(error));