在index.html中加入以下代码 链接后面带上forDevelopment就可以开启调试
<script>
(function (window) {
if (window.location.href.indexOf('forDevelopment') > 0) {
var erudaEl = document.createElement('script');
erudaEl.setAttribute('type', 'text/javascript');
erudaEl.setAttribute('src', "https://cdn.bootcss.com/eruda/1.4.1/eruda.min.js");
document.head.append(erudaEl);
erudaEl.onload = function () {
eruda.init();
}
}
})(window);
</script>

相关文章:

  • 2021-04-02
  • 2021-09-06
  • 2021-12-19
  • 2019-09-09
  • 2021-12-10
  • 2021-11-13
  • 2021-10-16
  • 2021-04-28
猜你喜欢
  • 2021-12-29
  • 2021-11-18
  • 2021-04-15
  • 2021-11-19
  • 2022-01-08
  • 2021-11-17
  • 2021-04-04
  • 2021-11-07
相关资源
相似解决方案