javascript判断int类型函数isNaN()

var str = '1';
if (isNaN(str)) {
    alert('不是number类型');
} {
    alert('是number类型');
}
相关文章
相关标签/搜索