2013-04-28 238 views

回答

0
if (array.length > 0) {...} 
0

你的意思是這樣的嗎?

$.each(array-name , function(){ 
    return typeof this === 'string' ? true : false 
}); 
+0

你如何console.log真或假用你的方法來測試一個數組,如果它有一個字符串?我無法獲得成功的測試。 – 2016-03-29 06:20:12

相關問題