2016-04-14 28 views

回答

1

你並不需要字符串化它。

alert(Attendances.data[0].EmpNTLogin); 

Attendances.data是JSON對象的數組,即每一個都具有EmpNTLogin屬性。 Attendances.data[0]獲取數組中的第一個JSON對象,並且.EmpNTLogin獲取與EmpNTLogin屬性相關的值,在本例中爲「Guatam」。