【文件属性】:
文件名称:electron-net-fetch:一个
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-02 20:00:05
JavaScript
电子净取
Electron的net模块的轻量级模块,用于获取http / https数据
安装
npm install gulp-less
基本用法
import fetch from 'electron-net-fetch'
fetch . get ( url , params , header )
. then ( data => {
console . log ( data )
} )
. catch ( e => {
console . log ( 'error' , e )
} )
fetch . post ( url , params , header )
. then ( data => {
console . log ( data )
} )
. catch ( e => {
console . log ( 'er
【文件预览】:
electron-net-fetch-master
----src()
--------utils()
--------index.js(2KB)
----LICENSE(1KB)
----README.md(457B)
----package.json(338B)