We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
工作中console可能是用来debug的最频繁的原生方法了,它不仅仅非常实用,而且还有一些有趣的东西。
常见占位符 %o: 接受Object %s: 接受String %d: 接受Number
css占位符 %c: 接受CSS
console.countReset ()
console对象上还有一些其他方法,这里就不过多介绍了,以上方法,用的做多的仅仅只有console.log,其他的偶会会用到,不过知道了真的就是知道了。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
工作中console可能是用来debug的最频繁的原生方法了,它不仅仅非常实用,而且还有一些有趣的东西。
常见占位符
%o: 接受Object
%s: 接受String
%d: 接受Number
css占位符
%c: 接受CSS
log会展示当前节点以及子孙节点,dir会展示节点的所有属性
console.countReset ()
重置总结
console对象上还有一些其他方法,这里就不过多介绍了,以上方法,用的做多的仅仅只有console.log,其他的偶会会用到,不过知道了真的就是知道了。
The text was updated successfully, but these errors were encountered: