ajax +.net mvc 多图片上传加预览
@{
ViewBag.Title = "Index";
Layout = null;
}
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title> 上传多张图片</title>
</head>
<body>
<script src="~/scripts/jquery-3.3.1.js"></script>
<script type="text/javascript">
//选择图片,预览
function xmTanUploadImg(obj) {
var imgTypes = new Array();
imgTypes[0] = "JPG";
imgTypes[1] = "ICO";
imgTypes[2] = "PNG";