js對象取值的兩種方式

var obj = {abc:"ss",nn:90}; var v1 = obj.abc;//使用點的方式 var v2 = obj["abc"];//使用中括號的方式
相關文章
相關標籤/搜索