自定义console.log

javascript
阅读 40 收藏 0 点赞 0 评论 0

consoleLog
const logPrefix = ['%cWDS', `background: ${'#f22c7c'}; color: white; padding: 2px 0.5em; border-radius: 0.5em;`];
console.log(...logPrefix, 'window.location: ', window.location);
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号