IFE-13笔记

判断输入值是否是数字:

判断输入值是否为数字:
if
(!isNaN(str)) 判断回车事件 onkeyup = function(event){ if(evnet.keyCode==13){ console.log('回车') } }