1.禁止户用直接写文件路径的
<input type="file" name="file" onpropertychange='file1.value=this.value' style=display:none> <input type='text' name=file1 readonly> <INPUT type="button" value="浏览" id=button1 name=button1 οnclick='file.click()'> 2.文本框只能输入数字: <input onKeyUp="value=value.replace(/[^/d]/g,'') " value="" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^/d]/g,''))"> |
呵呵 小伎俩 但很凑效
最新推荐文章于 2024-03-05 11:01:25 发布