得到答案 onkeyup="value = this.value.replace(/[^0-9\-]/g, '')". onkeyup 是javascript的event 做法是如果不是輸入數字或-就替換成"".
確定! 回上一頁