开源软件名称(OpenSource Name):AlloyTeam/AlloyLever开源软件地址(OpenSource Url):https://github.com/AlloyTeam/AlloyLever开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):English中文 |AlloyLever1kb(gzip)代码搞定开发调试发布,错误监控上报,用户问题定位。 url带参数唤起有两个目的,第一是方便网站开发过程中显示vConsole面板,第二是发给投诉反馈网站错误的用户显示vConsole面板用于定位错误。 安装
CDN地址下载下来使用: 使用指南AlloyLever.config({
cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js', //vconsole的CDN地址
reportUrl: "//a.qq.com", //错误上报地址
reportPrefix: 'qun', //错误上报msg前缀,一般用于标识业务类型
reportKey: 'msg', //错误上报msg前缀的key,用户上报系统接收存储msg
otherReport: { //需要上报的其他信息
uin: 491862102
},
entry:"#entry" //请点击这个DOM元素6次召唤vConsole。//你可以通过AlloyLever.entry('#entry2')设置多个机关入口召唤神龙
}) AlloyLever会监听 url唤起vConsole只要你的页面引用了AlloyLever,你只需要在你的url里带上 vconsole=show 就能显示vConsole面板。如:
这些url的作用很好理解:
在线演示
QQ交流群491862102中文English |AlloyLever1kb(gzip) js library contains development debugging, error monitoring and reporting, user problem localization features.
There are two purposes for URL parameter arousal, the first is to display the vConsole panel during the website development process, and the second is to send a complaint to the feedback site. The wrong user displays the vConsole panel for locating errors. Install
or get it from cdn: UsageAlloyLever.config({
cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js', //vconsole CDN address
reportUrl: "//a.qq.com", //Error reporting address
reportPrefix: 'qun', //An error reporting msg prefix is generally used to differentiate business types
reportKey: 'msg', //Error reporting msg prefix key, user reporting system receives storage msg
otherReport: { //Other information to be reported
uin: 491862102
},
entry:"#entry" //Please click on this DOM element to summon vConsole 6 times. You can use AlloyLever.entry('#entry2') add more entry
}) AlloyLever will listen to URL evokes vConsoleAs long as your page references AlloyLever, you simply display the vConsole panel with the vconsole=show in your url. Such as:
The role of these URL is well understood:
DEMO
LicenseThis content is released under the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论