Dart Web Programming for Beginners: 08 Accessing Elements in HTML

preview_player
Показать описание
In this video, we review accessing HTML elements in Dart. We review the following keywords and concepts:

querySelector - calls the HTML and selects the element used to create a Dart object. See the video for the syntax. Brackets are not allowed in the comment section, so I can not fully type it out here.

The console (for using “print”) is in the menu: menu →more tools → Javascript console.
Рекомендации по теме
Комментарии
Автор

hmmm as of late 2021 alot of this is not working.

zenw
Автор

How did you import the library dart:html?

joseamezaga
Автор

Sorry, but I seen that the way to access DOM element by name is without single quotes.
var miMusica =
print(miMusica);
😜

luisbabilonibelenguer