Fundebug前端JavaScript插件更新至1.4.0

栏目: JavaScript · 发布时间: 7年前

内容简介:callback是回调函数,只能在JavasScript中配置:其中event为上报到Fundebug服务器的错误数据,需要的话,您可以使用callback函数来查看错误数据,也可以将其发送到其他数据平台。如果你不需要监控WebSocket连接错误,则可以将silentWebsocket属性设为true。

callback是回调函数,只能在JavasScript中配置:

fundebug.callback = function(event) {
    console.log(event);
};

其中event为上报到Fundebug服务器的错误数据,需要的话,您可以使用callback函数来查看错误数据,也可以将其发送到其他数据平台。

silentWebsocket

如果你不需要监控WebSocket连接错误,则可以将silentWebsocket属性设为true。

  • 在HTML中配置 <script> 标签中配置silentWebsocket属性
<script src="https://js.fundebug.cn/fundebug.1.4.0.min.js" 
            apikey="API-KEY" 
            silentWebsocket=true></script>
  • 在JavaScript中配置silentWebsocket变量
fundebug.silentWebsocket = true;

最后,感谢Fundebug用户 千夜莫欺 的反馈~大家有问题或者建议都可以直接联系我们~


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Programming From The Ground Up

Programming From The Ground Up

Jonathan Bartlett / Bartlett Publishing / 2004-07-31 / USD 34.95

Programming from the Ground Up is an introduction to programming using assembly language on the Linux platform for x86 machines. It is a great book for novices who are just learning to program as wel......一起来看看 《Programming From The Ground Up》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具