Socket
Socket
Sign inDemoInstall

react-mini-http

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-mini-http

support original http functions...jsonp、ajax


Version published
Weekly downloads
9
increased by200%
Maintainers
1
Install size
9.08 kB
Created
Weekly downloads
 

Readme

Source
序号方法描述
jsonp: function (url, successCallBack, failCallBack) 原生jsonp方法
@param {string} url 请求地址url
@param {function} successCallBack 成功回调函数
@param {function} failCallBack 失败回调函数
@return {void}
ajax: function (options) Ajax请求
@param {object} options 可选参数
{
method: 'get',
url: '',
data: {},
async: true,
success: function(){},
error: function(){},
timeout: 10000
}
@return {void} 无

Keywords

FAQs

Last updated on 12 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc