我正在开发一个移动应用程序,其中使用二维码扫描器。我使用以下代码http://dwa012.github.io/html5-qrcode/。按照“Readme”文件中的说明。我写了下面的代码。
<div class="center" id="reader" style="width:300px;height:250px;">
<script type="text/javascript">
$('#reader').html5_qrcode(function(data){
// do something when code is read
},
function(error){
//show read errors
}, function(videoError){
//the video stream could be opened
}
);
</script>
</div>但是我没有得到输出,它没有打开摄像头。请帮助我找出问题所在。
发布于 2014-03-20 08:28:22
如果github示例页面对您有效,那么听起来您可能没有运行服务器。See if this stackoverflow question helps you。
https://stackoverflow.com/questions/20541355
复制相似问题