JavaScript length
判斷Array長度
語法 array.length=number
var AAA=[]
if ( (AAA).length > 0) -> O
if ( length(AAA) > 0 ) -> X
if ( (AAA).length() > 0) -> X
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.length -> return 4
參考w3schools : More JavaScript Array length
http://www.w3schools.com/jsref/jsref_length_array.asp
沒有留言:
張貼留言