课程: JavaScript Essential Training
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Accessing objects
- [Narrator] In the real world, if you want someone to hand you something you mentioned it by name. So you say, hey, can you hand me that backpack, please? The same thing goes for JavaScript. Anytime you want to access an object or anything else contained inside a variable you simply call it by its name and JavaScript will hand it to you. In the exercise files for this movie there is an object with the name backpack. If you go over to the console you can call that object by simply naming it directly. So if I type in backpack here and hit return I get the entire object and I can then dig deeper into it to see what's going on. So here I can see all the properties and the methods and I can even open the methods to see what they contain. It works the same way in JavaScript. So let's say you want to output this object in its entirety in the console for reference and do so automatically so you don't have to go into the…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
Objects: A practical introduction4 分钟 53 秒
-
(已锁定)
JavaScript objects: The code version2 分钟 57 秒
-
(已锁定)
Object containers2 分钟 22 秒
-
(已锁定)
Object properties55 秒
-
(已锁定)
Accessing objects2 分钟 32 秒
-
(已锁定)
Accessing object properties5 分钟 35 秒
-
(已锁定)
Practice: Build a new object1 分钟 18 秒
-
(已锁定)
Object methods6 分钟 29 秒
-
(已锁定)
Practice: Build a new method56 秒
-
(已锁定)
Classes: Object blueprints6 分钟 35 秒
-
(已锁定)
Object constructors2 分钟 21 秒
-
(已锁定)
Practice: Build a new object with a constructor1 分钟 13 秒
-
(已锁定)
Global objects7 分钟 47 秒
-
(已锁定)
Challenge intro: Create a new object type2 分钟 5 秒
-
(已锁定)
Solution: Create a new object type3 分钟 16 秒
-
-
-
-
-
-
-
-
-