vue项目中开启调试
1.把这段放在main.js中重启,手机上可以实现调试功能
; (function () { var src = '//cdn.jsdelivr.net/npm/eruda'; // if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return; document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>'); document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>'); })();