console.log在线调试

前端开发人员工作有时候会用到console.log,PC端直接能打开开发者工具。但是移动端就不太方便了,为此提供一种简单的方法,只需2步:

1、打开http://jsconsole.com/  输入:     :listen

2、复制<script src="http://jsconsole.com/remote.js?xxxxxxxxxxxxxxxxxxxxx"></script>放入需要测试的html中。此时在手机上操作就能在上面看到console了。

同样适用于pc端,不过pc端能打开开发者工具貌似没什么必要。

注:   输入:clear为清除页面内容

原文地址:https://www.cnblogs.com/91allan/p/4897436.html