我已经安装了cordova-plugin-camera。虽然,它给了我以下错误。
navigator.camera 未定义。这是代码片段。提前致谢!
<body>
<script>
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log(typeof navigator.camera);
}
window.onload=onDeviceReady;
</script>
</body>