window.onload = function () {
var shower = document.getElementById('show');
navigator.getUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia;
if(navigator.getUserMedia){
shower.innerHTML = "支持调取摄像头麦克风"
} else {
shower.innerHTML = "抱歉不支持"
}
}版权声明:本文为u010430099原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。