New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hansdo/badjsreport

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hansdo/badjsreport

使用方法:

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

badJsReport.js 前端js异常上报

使用方法:

1、将badJsReport.js加载到其他的js之前

2、简单的使用方法:(这个执行方法要放在其他代码执行之前)

badJsReport({ url:'http://www.baidu.com', //发送到后台的url *必须 })

3、如果需要新增上报参数,或者要知道发送给后台的回调。可以用下面的方法

badJsReport({

url:'http://www.baidu.com', //发送到后台的url *必须

data:{}, //自定义添加上报参数,比如app版本,浏览器版本 -可省略

successCallBack:function(response, xml){

  // 发送给后台成功的回调,-可省略

},

failCallBack:function(error){

  // 发送给后台失败的回调,-可省略

} })

文章地址:http://www.cnblogs.com/xianyulaodi/p/6201829.html

FAQs

Package last updated on 18 Mar 2021

Did you know?

Socket

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