Console for Mobile Browsers - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cloudflare. We make it faste
使用方法: 1.在html中引用如下js: eruda.init(); 2.直接将eruda.min.js下载下来或者复制一个放在项目里,直接引用(import)本地的js 然后直接点击页面右下角有个设置形状的按钮,就会显示一个控制台 注:调试完记得清除调试代码与插件
通过cdn来使用 eruda.init(); 通过npm安装 npm install eruda --save eruda.init(); 注意: 全局引入js文件对于移动端略大(压缩之后还100kb),因此建议使用脚本按根据页面需要按需引入,或者通过url参数控制是否加入调试器。 (function () { var src = 'node_modules/eruda/eruda.min.js'; if (!/eruda=tr...
It's also available onjsDelivrandcdnjs. eruda.init(); For more detailed usage instructions, please read the documentation ateruda.liriliri.io! Related Projects eruda-android: Simple webview with eruda loaded automatically. chii: Remote debugging...
Eruda的github地址: https://github.com/liriliri/eruda/blob/master/doc/README_CN.md 1)通过CDN使用: 直接在html页面中引入Eruda的JS文件 eruda.init(); 2)通过npm安装: npm install eruda --save 在页面中加载脚本: eruda.init(); 右下角会出现...
快速使用代码: eruda.init(); demo地址 转载:https://houjinlong.github.io/2017/11/13/移动端调试神器(eruda)/
通过CDN使用: eruda.init(); 通过npm安装: npm install eruda --save 在页面中加载脚本: eruda.init(); 参考:https://github.com/liriliri/eruda/blob/master/doc/README_CN.md
var src ='http://cdn.jsdelivr.net/eruda/1.0.5/eruda.min.js';if(!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') !='true')return; document.write('<scr'+'ipt src="'+ src +'"></scr'+'ipt>');
只要在我们的html文件中写入下面这些代码,在手机上,也能想浏览器控制台一样进行查看。 eruda.init(); 真的方便我们开发使用。
eruda.init(); 单页应用 1 2 3 4 5 6 7 8 9 10 11 12 npm install --save-dev eruda ;(function () { if (!/mdebug=true/.test(window.location.href)) return; var script = document.createElement('script') script.src = "https://cdn.bootcss.com/eruda/1.2.6/eruda.min.js" script...