日期:2014-05-16 浏览次数:20444 次
document.writeln("isNaN() -->" + isNaN())
document.write("<br/>")
document.writeln('isNaN("") -->' + isNaN(""))
document.write("<br/>")
document.writeln('isNaN("1") -->' + isNaN("1"))
document.write("<br/>")
document.writeln('isNaN(" 1") -->' + isNaN(" 1"))
document.write("<br/>")
document.writeln('isNaN(" 1 ") -->' + isNaN(" 1 "))
document.write("<br/>")
document.writeln('isNaN("1 1") -->' + isNaN("1 1"))
document.write("<br/>")
document.writeln('isNaN("abc") -->' + isNaN("abc"))
document.write("<br/>")
document.writeln('isNaN(null) -->' + isNaN(null))
document.write("<br/>")
document.writeln('isNaN(undefined) -->' + isNaN(undefined))
document.write("<br/>")
document.writeln('isNaN(0/0) -->' + isNaN(0 / 0))
document.write("<br/>")
document.writeln('isNaN(1/0) -->' + isNaN(1 / 0))
document.write("<br/>")
document.writeln('isNaN(false) -->' + isNaN(false))
document.write("<br/>")
document.writeln('isNaN({}) -->' + isNaN({}))
document.write("<br/>")
document.writeln('isNaN([]) -->' + isNaN([]))
document.write("<br/>")
document.writeln('isNaN([1,2]) -->' + isNaN([1, 2]))