Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

🔥 4 JavaScript console tips: $, $$, $0 → $4 and $_

169,309 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Sam Sedighian
Sam Sedighianvor 3 Jahren

Amazing how you are fitting so much in such short video! Well done as always @wesbos 👏🏼

Profilbild von Wes Bos
Wes Bosvor 3 Jahren

thanks!

Profilbild von Corey Salzano
Corey Salzanovor 3 Jahren

Very cool

Profilbild von Gonçalo Dias
Gonçalo Diasvor 3 Jahren

Interesting, almost like jQuery but on the browser console.

Profilbild von Neil Chudleigh
Neil Chudleighvor 3 Jahren

Damn! Those are good ones, going to try and use em today.

Profilbild von Catalin Rosu
Catalin Rosuvor 3 Jahren

Nice tips, Wes! I wrote the following a while ago and, in case it helps, $r or $vm0 return the respective React or Vue components too:

Profilbild von Marco Biedermann
Marco Biedermannvor 3 Jahren

Maybe worth mentioning this is a feature in the @ChromeDevTools console only. This is not part of the JS spec. So it does not work in Node or any other environments.

Profilbild von Not Penny’s Boat 🛥️
Not Penny’s Boat 🛥️vor 3 Jahren

I had no idea until literally last week! My knowledge has only gone as far as $0. Have always been typing the full document.querySelector() bs...

Profilbild von Marcel Cruz
Marcel Cruzvor 3 Jahren

I never knew beyond the single $. Thanks for so many tips in only one video!

Profilbild von Matvey
Matveyvor 3 Jahren

You can also use copy() function to copy something to the clipboard from the console.

Ähnliche Videos