Dot syntax
All along, you don't understand what a point syntax is, it's the equivalent of a link or a path. Maybe I browsed less information, read a few related blog posts, there is no record, this is only a preliminary analysis of insights.
In JavaScript, properties and methods are accessed using the "dot" syntax:
Object.property accesses data in an object by means of a property Object.Method () accesses the data in the object through the form of a method
So, ". Dot is the operator of the Access object property, method in JS.
According to this period of time after learning JSON observation found: Point syntax operation, first "." Have to be an object.
JSON first converted to JSON object
Oh! Yes, there are arrays, which are converted to array objects.
var Lennon = Array (); or var Lennon = Object (); < recommended Use >lennon.name = "Xiaoyaochaoer"; lennon.age = 23;
PS: All variables in JavaScript are actually objects of some kind.
Exploring the mysteries of "point" grammar