使用ZXying是否可以将其输出到表单?我试图添加ID'dbr',但是它没有填充。
<div class="form-group">
<label for="AddItemDescription">Item Description</label>
<input type="text" class="form-control" id="Whatever" name="Item_Description"
placeholder="QR">
</div>
<div>Barcode result: <span id="dbr" name='2Item'></span></div>
<div class="select">
<label for="videoSource">Video source: </label><select id="videoSource"></select>
</div>
<button id="go">Read Barcode</button>
<div>
<video muted autoplay id="video" playsinline="true"></video>
<canvas id="pcCanvas" width="640" height="480" style="display: none; float: bottom;"></canvas>
<canvas id="mobileCanvas" width="240" height="320" style="display: none; float: bottom;"></canvas>
</div>
</body>
谢谢!