console.log在线调试】的更多相关文章

前端开发人员工作有时候会用到console.log,PC端直接能打开开发者工具.但是移动端就不太方便了,为此提供一种简单的方法,只需2步: 1.打开http://jsconsole.com/  输入:     :listen 2.复制<script src="http://jsconsole.com/remote.js?xxxxxxxxxxxxxxxxxxxxx"></script>放入需要测试的html中.此时在手机上操作就能在上面看到console了. 同样…
const 创建一个只读的常量 let块级作用域 const let重复赋值都会报错 console.log('a',a) a console.log('a'+a) a2 逗号的值会有空格:用加号的值没有空格…
(点击上方的订阅号,可快速关注,关注有惊喜哦^_^) 前不久看到一道JS基础题目,做了一下竟然错了一半...在此分享一下: 先把题目放上来,大家可以自己测试一下再看答案哦^_^ ①console.log(1+"2"+"3"); ②console.log(1+ +“2”+"3"); ③console.log("A"-"B"+"3"): ④console.log("A"-…
f1.html代码 <iframe id="frame2" name="frame1" src="ww.html"></iframe> <script type="text/javascript"> function ss(){ console.log($('#frame1')) // 打印信息 $f = $(].contentDocument.documentElement.innerTe…
[1]alert() [1.1]有阻塞作用,不点击确定,后续代码无法继续执行 [1.2]alert()只能输出string,如果alert输出的是对象会自动调用toString()方法 e.g. alert([1,2,3]);//'1,2,3' [1.3]alert不支持多个参数的写法,只能输出第一个值 e.g. alert(1,2,3);//1 [2]console.log() [2.1]在打印台输出 [2.2]可以打印任何类型的数据 e.g. console.log([1,2,3]);//[…
console.log((function f(n){) ? n * f(n-) : n)})()); 5被传入到函数,函数内部三元计算,5 > 1成立,运算结果是5*f(4),二次运算,5*4*f(3),依次类推,最终是5*4*3*2,最终返回结果是120. 如图:…
  JS高级群的日常!写一个从10到0的倒计时,用console.log打印,不可以用 setInterval!本来说好的研究avalonJS最后演变成了看着大神在那边互相比拼实力..   小森执行一个函数  没有全局变量 写一个从10到0的倒计时   用console.log打印  不可以用 setInterval   小白..额,可以多次调用setTimeout()吗     某个被打败的神Function fn(a){console.log(a--);if(a>=0)   Settimeo…
Difference console.log prints the element in an HTML-like tree console.dir prints the element in a JSON-like tree Example Specifically, console.log gives special treatment to DOM elements, whereas console.dir does not. This is often useful when tryin…
生活中还是得有发现美好和差别的眼睛~~ 学习前端那么久既然还不知道alert和console.log的差别~~~~ 蓝瘦,香菇~~~ 本菜鸟一直以为alert和console.log其实是一样的用法,只是alert以弹出框形式呈现,而console.log在控制台输出而已. 知道昨天输出一段代码,结果发现alert和console.log输出结果不一样~~~~~本宝宝可算涨见识了~~~ 然后就是各种查阅资料,百度查看,终于发现点眉目啦~~~~~ 我写了这样一段代码 : alert输出的结果为:…
1.alert() a.有阻塞作用,不点击确定,后续代码无法继续执行 b.alert只能输出string,如果alert输出的是对象,会自动调用toString()方法 eg:alert([1,2,3]);//'1,2,3' c.alert不支持多个参数的写法,只能输出第一个值 eg: alert(1,2,3); //1 2.console.log() a.在打印台输出 b.可以打印任何类型的数据 eg:alert([1,2,3]);//[1,2,3] c.支持多个参数的写法 eg: alert…