图片预览 兼容ie6-11,chrome,firefox,opera
function editUpfile(obj) {
var photoExt=obj.value.substr(obj.value.lastIndexOf(".")).toLowerCase();//获得文件后缀名
if(!(photoExt=='.jpg'||photoExt=='.jpeg'||photoExt=='.png'||photoExt=='.gif')){
原创
2016-09-28 09:14:29 ·
259 阅读 ·
0 评论