![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
校验
文章平均质量分 69
水中鸟lgl
这个作者很懒,什么都没留下…
展开
-
Java字符串数据校验
//只能输入中文字符,不能包含空格 public static boolean isContainChinese(String str) { boolean flag =true; char[] chars=str.toCharArray(); Pattern p = Pattern.compile("[\u4e00-\u9fa5]"); for原创 2015-06-12 16:21:16 · 755 阅读 · 0 评论 -
校验文件是否为excel文件
1、校验文件是否为excel文件 function doCheck(){ var file = $("#fileName").val(); if(file == '' || file == null) { $("#error").html("请选择所要上传的文件!"); } else {原创 2015-06-10 09:50:11 · 1157 阅读 · 1 评论