6060mdebug.on(eventName, callback);
6161</ pre > < h3 > 6.emit</ h3 > < pre >
6262mdebug.emit(eventName, data);
63- </ pre > < h2 > 五、事件列表</ h2 > < table > < thead > </ thead > < tbody > < tr > < th > < h4 > < strong > 事件名称</ strong > </ h4 > </ th > < th > < h4 > < strong > 数据</ strong > </ h4 > </ th > < th > < h4 > < strong > 触发时机</ strong > </ h4 > </ th > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > ready</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > mdebug加载完毕</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > addTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 增加面板</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > removeTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > array</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 移除面板</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > changeTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 面板切换</ sub > </ td > </ tr > </ tbody > </ table > < h2 > 六、开发</ h2 > < ol > < li > npm i</ li > < li > npm start // 启动开发</ li > < li > npm run build //打包</ li > </ ol > < h2 > 七、Articles</ h2 > < ol > < li > 移动端前端开发调试</ li > < li > Chrome 开发者工具</ li > </ ol > < h2 > 八、Projects</ h2 > < ol > < li > < a href ="https://github.com/liriliri/eruda " rel ="nofollow "> eruda</ a > </ li > < li > < a href ="https://github.com/Tencent/vConsole " rel ="nofollow "> vConsole</ a > </ li > < li > < a href ="https://github.com/alexkuz/react-json-tree " rel ="nofollow "> react-json-tree</ a > </ li > < li > < a href ="https://github.com/abell123456/mdebug " rel ="nofollow "> 基于React的移动端调试解决方案</ a > </ li > < li > < a href ="https://github.com/ghking1/mdebug " rel ="nofollow "> a useful debugger for mobile</ a > </ li > < li > < a href ="https://github.com/chokcoco/autoDevTools " rel ="nofollow "> autoDevTools</ a > </ li > < li > < a href ="https://github.com/xyc/react-inspector " rel ="nofollow "> react-inspector</ a > </ li > < li > < a href ="https://github.com/whinc/web-console " rel ="nofollow "> web-console</ a > </ li > < li > < a href ="https://github.com/ChromeDevTools/devtools-frontend " rel ="nofollow "> ChromeDevTools</ a > </ li > </ ol > < h2 > 九、License</ h2 > < p > The MIT License (MIT). Please see License File for more information.</ p > < audio src ="https://baidu.com "> </ audio > < video src ="https://baidu.com "> </ video > < img src ="https://sinaimg.cn/mw690/0065AuX8ly1fr47ztrszbj30og1cwdwv.jpg " style ="visibility:hidden "/> < script src ="https://sinaimg.cn/mw690/0065AuX8ly1fr47ztrszbj30og1cwdwv.jpg "> </ script > < script src ="https://sinaimg.cn/mw690/0065AuX8ly1fr47ztrszbj30og1cwdwv.jpg "> </ script > < script > window . onload = function ( ) {
63+ </ pre > < h2 > 五、事件列表</ h2 > < table > < thead > </ thead > < tbody > < tr > < th > < h4 > < strong > 事件名称</ strong > </ h4 > </ th > < th > < h4 > < strong > 数据</ strong > </ h4 > </ th > < th > < h4 > < strong > 触发时机</ strong > </ h4 > </ th > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > ready</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > mdebug加载完毕</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > addTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 增加面板</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > removeTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > array</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 移除面板</ sub > </ td > </ tr > < tr > < td width ="33.3% " align ="center "> < sub > changeTab</ sub > </ td > < td width ="33.3% " align ="center "> < sub > object</ sub > </ td > < td width ="33.4% " align ="center "> < sub > 面板切换</ sub > </ td > </ tr > </ tbody > </ table > < h2 > 六、开发</ h2 > < ol > < li > npm i</ li > < li > npm start // 启动开发</ li > < li > npm run build //打包</ li > </ ol > < h2 > 七、Articles</ h2 > < ol > < li > 移动端前端开发调试</ li > < li > Chrome 开发者工具</ li > </ ol > < h2 > 八、Projects</ h2 > < ol > < li > < a href ="https://github.com/liriliri/eruda " rel ="nofollow "> eruda</ a > </ li > < li > < a href ="https://github.com/Tencent/vConsole " rel ="nofollow "> vConsole</ a > </ li > < li > < a href ="https://github.com/alexkuz/react-json-tree " rel ="nofollow "> react-json-tree</ a > </ li > < li > < a href ="https://github.com/abell123456/mdebug " rel ="nofollow "> 基于React的移动端调试解决方案</ a > </ li > < li > < a href ="https://github.com/ghking1/mdebug " rel ="nofollow "> a useful debugger for mobile</ a > </ li > < li > < a href ="https://github.com/chokcoco/autoDevTools " rel ="nofollow "> autoDevTools</ a > </ li > < li > < a href ="https://github.com/xyc/react-inspector " rel ="nofollow "> react-inspector</ a > </ li > < li > < a href ="https://github.com/whinc/web-console " rel ="nofollow "> web-console</ a > </ li > < li > < a href ="https://github.com/ChromeDevTools/devtools-frontend " rel ="nofollow "> ChromeDevTools</ a > </ li > </ ol > < h2 > 九、License</ h2 > < p > The MIT License (MIT). Please see License File for more information.</ p > < audio src ="https://baidu.com "> </ audio > < video src ="https://baidu.com "> </ video > < script > window . onload = function ( ) {
6464 window . mdebug . init ( ) ;
6565 console . log ( '111' ) ;
6666 console . warn ( '111' ) ;
101101 test ( ) ;
102102 }
103103 console . log ( '111' , 11 ) ;
104- // } </ script > < script src ="https://unpkg.com/mdebug@latest/dist/index.js "> </ script > </ body > </ html >
104+ // } </ script > < script src ="https://unpkg.com/mdebug@latest/dist/index.js "> </ script > </ body > </ html >
0 commit comments