//在点击键盘按键时,已完成对文本框的输入 既 onkeyup之前,已完成了输入// 换行符 回车 \, 反义符onkeyup="this.value=this.value.replace(/[^ 0-9\,-]/g,'');"