Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 459 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 459 Bytes

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