xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Chrome DevTools console panel live expression All In One

Chrome DevTools console panel live expression All In One

live expression / 动态表达式/ 实时表达式

demos

image

$(`#audio`).src;

https://music.xgqfrms.xyz/music-player/index.html?q=https://cdn.pixabay.com/audio/2025/04/21/audio_ed6f0ed574.mp3

👀 Watch JavaScript in real-time

image

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

Console API

https://developer.mozilla.org/en-US/docs/Web/API/console

console.table(data)
console.table(data, columns)

https://developer.mozilla.org/en-US/docs/Web/API/console/table_static

https://www.w3schools.com/jsref/met_console_table.asp

console.table

obj = {a: 1, c: 2, b: 3}

console.table(obj)

console.table()

image

// an array of objects, logging only firstName

function Person(firstName, lastName) {
  this.firstName = firstName;
  this.lastName = lastName;
}

const tyrone = new Person("Tyrone", "Jones");
const janet = new Person("Janet", "Smith");
const maria = new Person("Maria", "Cruz");

// firstName 选择显示的字段子集 ✅
console.table([tyrone, janet, maria], ["firstName"]);

image

Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().

web audio music player

https://github.com/xgqfrms/music/issues/4#issuecomment-2833939486

https://developer.chrome.com/blog/play-request-was-interrupted?hl=zh-cn

refs

https://developer.chrome.com/docs/devtools/console/live-expressions



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2025-04-28 12:59  xgqfrms  阅读(7)  评论(2)    收藏  举报