html页面图片上传回显,不访问数据库,ajax请求
图片按钮,绑定input type=file点击时间
<div style="margin-top:40px;text-align: center;">
<label id="img_label" ><!--style="width: 471px;height: 471px; "-->
<img id="upload-img" src="image/addPhoto.png" height="471" width="471"/>
<input id="photo_file" type="file" onchange="uploadclick(this)" name="file" style="width: 100%;height: 100%;opacity: 0" accept="image/*"/>
<!-- 用于保存,上传图片路径 -->
<!--<input type="hidden" id="photo-input" name="" value="image/addPhoto.png" required />-->
<input type="hidden" name="type" value="1" />
</l