Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileTypeExts 无法限制打开后上传文件格式。 #8

Open
jarunwang opened this issue Oct 10, 2017 · 0 comments
Open

fileTypeExts 无法限制打开后上传文件格式。 #8

jarunwang opened this issue Oct 10, 2017 · 0 comments

Comments

@jarunwang
Copy link

/将输入的文件类型字符串转化为数组,原格式为*.jpg;*.png
getFileTypes : function(str){
var result = [];
var arr1 = str.split(";");
for(var i=0, len=arr1.length; i<len; i++){
result.push(arr1[i]);
}
return result;
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant