我已经从
实施了它这在桌面上可以正常工作但在移动设备上不能正常工作/扫描, 我不知道如何解决它有没有办法解决这个问题
<canvas style="height: 35%; width: 100%"></canvas>
<ul></ul>
<script src="~/WebCam_Js/qrcodelib.js"></script>
<script type="text/javascript" src="~/WebCam_Js/webcodecamjs.js"></script>
<script type="text/javascript">
var txt = "innerText" in HTMLElement.prototype ? "innerText" : "textContent";
var arg = {
resultFunction: function (result) {
debugger;
document.getElementById('BillNo').value = result.code;
document.getElementById('clickButton').click();
document.getElementById('BillNo').focus();
document.getElementById('myButton').click();
}
};
new WebCodeCamJS("canvas").init(arg).play();
</script>