jquery判断是否为数字

  • A+
所属分类:jquery
if(!isNaN(sum)){
        $("#sum_" + name).text(sum);
    }

 

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: