onBlur="javascript:document.myfrom.hits.value=document.myfrom.hits1.value;" onKeyUp='this.value=this.value.replace(/\D/gi,"")'
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 19:42:35
x)s)-UJ,K,N.,(JO.M+˭L+,)+K)M&eVRN-U/Ȅ@0RrS5c\3u4m v6"rςgڟ/tOË+N}>mOf@`O<_dWH dW۞XZYZcɳikO',{6uӵuAJfֻYDŽ+w$ف p
onBlur="javascript:document.myfrom.hits.value=document.myfrom.hits1.value;" onKeyUp='this.value=this.value.replace(/\D/gi,"")'
onBlur="javascript:document.myfrom.hits.value=document.myfrom.hits1.value;" onKeyUp='this.value=this.value.replace(/\D/gi,"")'
onBlur="javascript:document.myfrom.hits.value=document.myfrom.hits1.value;" onKeyUp='this.value=this.value.replace(/\D/gi,"")'
当鼠标离开表单的时候,表单hits1的值等于hits的值,当事件是keyup的时候,判断是否数字,不是的替换成空