JS如何判断数值型

JS如何判断数值型

当isNaN返回False时判断的数据为数值型,True时为非数值型。注:空值时返回False。 例:document.getElementByIdx_x("txtA").value = "ABCD"
JavaScript220