Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
setTimeout(function() { abc[index].Factoid }, 2000);
我在这个数组中设置了一些字符串。
如何检查这个数组有字符串还是没有字符串?
你的意思是这样的吗?
$.each(array-name , function(){ return typeof this === 'string' ? true : false });
if (array.length > 0) {...}