Loading

Accessing Object's Properties

There are two ways to access a property of an object:

  • Using square bracket notation, for example hero['occupation']
  • Using the dot notation, for example hero.occupation
posted @ 2012-03-28 20:46  .net's  阅读(310)  评论(0)    收藏  举报