【发布时间】:2011-01-18 00:56:10
【问题描述】:
所以..
我将数据传递给以不同方式处理字符串和数字的函数。
我希望能够传递一个值数组并检测每个值的类型。
row[0] = 23;
row[1] = "this is a string... look at it be a string!";
row[2] = true;
$.each(row, function(){
alert(typeof(this));
//alerts object
});
是否可以检测给定行中的“实际”数据类型?
【问题讨论】:
标签: javascript types jquery