62,074
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
/*** 检查是否包含汉字 ***/
String.prototype.isInChinese = function() {
var oldname=$("#FileUpload1").val();
if(oldname.length != oldname.replace(/[^\x00-\xff]/g,"**").length){
//报错
}
}
</script>