![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html/css/javascript
qq_35279788
这个作者很懒,什么都没留下…
展开
-
文件导入时限制导入文件的类型
一开始以为要实现这个功能会很复杂,没想到就只是一个属性的问题就解决了,哈哈~ 具体看代码 <input title=" " type="file" name="userfile" id="userfile" style="cursor:hand;" accept=".txt, .json, application/vnd.openxmlfor...原创 2019-03-29 17:06:28 · 1170 阅读 · 0 评论 -
校验输入框内容是否是合法ip
var queryContent= $.trim(document.getElementById("queryContent").value); var isRightAddress = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(...原创 2019-03-29 17:21:00 · 808 阅读 · 0 评论