上传图片
_Autumn_
这个作者很懒,什么都没留下…
展开
-
上传图片并展示效果图
html<div class="exhibition"> <input id="file" type="file" name="myfile" accept="image/*" onchange="imgChange(this);"/><img src="img/loding_img.jpg&q原创 2018-07-03 14:35:06 · 590 阅读 · 0 评论 -
apicloud 上传头像或图片并预览
点击头像自动上传<div class="head" tapmode onclick="showAction()"><img id="img_src" src="../image/preview.jpg"/></div> // 点击头像function showAction() { api.actionSheet({原创 2018-07-23 10:03:39 · 3064 阅读 · 0 评论 -
图片转base64并压缩大小
<input id="file" type="file" capture="microphone" accept="image/*"> $("#file").change(function(){var m_this = this; cutImageBase64(m_this,null,400,0.8); })function cutImageBase6原创 2018-01-08 12:00:18 · 12328 阅读 · 0 评论 -
jq判断上传图片的大小和类型
<input name="file" type="file" id="changheadimg">var File = document.getElementById("changheadimg"); File.addEventListener('change', function() { var file = this.files[0];...原创 2018-10-29 12:00:09 · 1168 阅读 · 0 评论