Skip to content

dengbupapapa/fetch-abort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch-abort

为web端fetch添加阻断功能(fetch-abort)

安装(install)

npm i fetch-abort --save

使用(use)

require('fetch-abor');

//es
import 'fetch-abort';

abort

	let demo = fetch('/api');
demo.abort()// 针对demo阻断(only demo abort)

fetch.abort(abortNum=10)//所有阻断(all abort)

Community

github npm

About

fetch、abort

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published