BarcodeScanner2 = TypeError: Cannot set property 'innerHTML' of null

后端 未结 2 1464
既然无缘
既然无缘 2021-01-16 12:13

I am trying to develop a barcode scanning app using phonegap-1.4.1 in android. I am trying to store all the values in an array code[] and later on I am displayi

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-16 12:40

    The error is clearly related to document.getElementById(test2[k]) returning no element, hence, there is no element with the id given. In your sample this would be Test1.

    Set the id of the paragraph to Test1 instead of Text and it find the element.

提交回复
热议问题