We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于React开发的移动web调试工具
https://github.com/tnfe/mdebug
https://tnfe.github.io/mdebug
npm install mdebug --save
import mdebug from 'mdebug'; mdebug.init();
(function() { var scp = document.createElement('script'); // 加载最新的mdebug版本 scp.src = 'https://unpkg.com/mdebug@latest/dist/index.js'; scp.async = true; scp.charset = 'utf-8'; // 加载成功并初始化 scp.onload = function() { mdebug.init(); }; // 加载状态切换回调 scp.onreadystate = function() {}; // 加载失败回调 scp.onerror = function() {}; document.getElementsByTagName('head')[0].appendChild(scp); })();
mdebug.init({ containerId: '' // mdebug挂载容器id, 如果传空, 内部会自动生成一个不重复的id, plugins: [], // 传入mdebug插件 hideToolbar: [], // 传入需要隐藏的tab id });
mdebug.addPlugin({ id: '', // tab id name: '', // tab对应的中文title, enName: '', // tab对应的英文title component: () => {}, // tab对应的react组件 });
// 支持移除的panel对应的id /* System => system; Elements => elements; Console => console Application => application NetWork => network Performance => performance Settings => settings */ mdebug.removePlugin([]);
/* @returned { type: '' // 日志类型 source: [], // 原始日志 } @params type // type等于log, 返回所有的console日志 // type等于net, 返回所有的net日志 */ mdebug.exportLog(type);
mdebug.on(eventName, callback);
mdebug.emit(eventName, data);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
基于React开发的移动web调试工具
简单易用
功能全面
易扩展
高性能
一、项目地址
https://github.com/tnfe/mdebug
二、快速体验
https://tnfe.github.io/mdebug
三、Examples
四、安装
Install using npm
五、使用
1. ES6
2.CDN
六、API
1. init
2. addPlugin
3. removePlugin
4. exportLog
5. on
6. emit
七、事件列表
八、开发
The text was updated successfully, but these errors were encountered: