1.录音功能
<input type="file" id="ids" accept="audio/*" capture="microphone" @change="preview($event)"/>
2.相机和相册
<input type="file" id="file" multiple> var file = $("#file"); if (getIos()) { file.removeAttribute("capture"); } function getIos() { var ua=navigator.userAgent.toLowerCase(); if (ua.match(/iPhonesOS/i) == "iphone os") { return true; } else { return false; } }