Загрузка видео...

Не удалось загрузить видео

На главную

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

169,309 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Sam Sedighian
Sam Sedighian3 лет назад

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

Фото профиля Wes Bos
Wes Bos3 лет назад

thanks!

Фото профиля Corey Salzano
Corey Salzano3 лет назад

Very cool

Фото профиля Gonçalo Dias
Gonçalo Dias3 лет назад

Interesting, almost like jQuery but on the browser console.

Фото профиля Neil Chudleigh
Neil Chudleigh3 лет назад

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

Фото профиля Catalin Rosu
Catalin Rosu3 лет назад

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:

Фото профиля Marco Biedermann
Marco Biedermann3 лет назад

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.

Фото профиля Not Penny’s Boat 🛥️
Not Penny’s Boat 🛥️3 лет назад

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...

Фото профиля Marcel Cruz
Marcel Cruz3 лет назад

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

Фото профиля Matvey
Matvey3 лет назад

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

Похожие видео