导入提示国际化

This commit is contained in:
wangxin
2018-10-22 20:19:06 +08:00
parent 12720ad2a8
commit 03b63b1709
4 changed files with 7 additions and 5 deletions

View File

@@ -130,13 +130,13 @@ var importCfg=function(){
}
if(fileName==""){
$("span",$error).html("请选择xls或者xlsx格式文件进行导入...");
$("span",$error).html($("#importTip").val());
$error.removeClass("hide");
$error.addClass("show");
return false;
}else if(fileName.lastIndexOf("\.")==-1||fileName.substring(fileName.lastIndexOf("\.")+1).toLowerCase()!='xls' &&fileName.substring(fileName.lastIndexOf("\.")+1).toLowerCase()!='xlsx'){
$("span",$error).html("导入的文件后缀必须为xls或者xlsx...");
$("span",$error).html($("#importTip").val());
$error.removeClass("hide");
$error.addClass("show");
return false;