#每天一个知识点# input 上有个 capture 属性,在移动端页面中,使用该属性的 file input 可以直接触发录制动作,比如 <input type="file" name="picture" accept="image/*" capture="user"> 会打开自拍摄像头,用户拍摄后会选中图片放到 input 中。
展开
评论