时间:2021-07-01 10:21:17 帮助过:2人阅读
效果:
引用:
<link rel="stylesheet" href="bootstrap.css" rel="external nofollow" > <script src="jquery.fileupload.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script>
html:
<p class="form-group"> <label>产品视频:</label> <p class="videoUpfile"> <input type="file" name="avatarVideo" class="avatarVideo"><a class="btn deleteAvatarVideo" href="javascript:;" rel="external nofollow" rel="external nofollow" >删除</a> <p class="videoMaterials"> <p class="progress"> <p class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> <span class="sr-only">0% Complete</span> </p> </p> <p class="files"></p> <p class="showimg"></p> <input type="hidden" value="" name="video_id[]"> <p style="color: #b92c28" class="img_upload_info"></p> </p> </p> <p class="videoUpfile"> <input type="file" name="avatarVideo" class="avatarVideo"><a class="btn deleteAvatarVideo" href="javascript:;" rel="external nofollow" rel="external nofollow" >删除</a> <p class="videoMaterials"> <p class="progress"> <p class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> <span class="sr-only">0% Complete</span> </p> </p> <p class="files"></p> <p class="showimg"></p> <input type="hidden" value="" name="video_id[]"> <p style="color: #b92c28" class="img_upload_info"></p> </p> </p> </p>
script:
以上就是js是如何实现带进度条的多视频上传?的详细内容,更多请关注Gxl网其它相关文章!