您可以设置console.log消息的样式:
console.log('%cStop!', 'color: red; font-size: 30px; font-weight: bold;');
您可以在window
load
事件中使用console.warn()
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.