@@ -25,9 +25,9 @@ $ npm install dynamsoft-javascript-barcode --save
2525
2626cdn
2727``` html
28- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
28+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
2929<!-- or -->
30- <
script src =
" https://unpkg.com/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
30+ <
script src =
" https://unpkg.com/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
3131```
3232
3333[ Download zip] ( https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js )
3636Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a valid license and update ` PRODUCT-KEYS ` :
3737
3838``` html
39- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
39+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
4040```
4141
4242## Quick Usage
@@ -45,7 +45,7 @@ Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a va
4545<!DOCTYPE html>
4646<html >
4747<body >
48- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
48+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
4949 <script >
5050 let scanner = null ;
5151 (async ()=> {
@@ -216,7 +216,7 @@ Create an HTML file with the following content. Deploy this to your web server a
216216<html >
217217<body >
218218 <!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
219- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
219+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
220220 <script >
221221 let scanner = null ;
222222 (async ()=> {
@@ -275,13 +275,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
275275* The following script includes the core library in the application via a [ jsDelivr] ( https://www.jsdelivr.com/ ) CDN
276276
277277 ``` javascript
278- < script src
= " https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data
- productKeys
= " PRODUCT-KEYS" >< / script
> 278+ < script src
= " https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data
- productKeys
= " PRODUCT-KEYS" >< / script
> 279279 ```
280280
281281 The same can be done with other CDNs like ` unpkg `
282282
283283 ``` javascript
284- < script src
= " https://unpkg.com/[email protected] .0 /dist/dbr.js" data
- productKeys
= " PRODUCT-KEYS" >< / script
> 284+ < script src
= " https://unpkg.com/[email protected] .2 /dist/dbr.js" data
- productKeys
= " PRODUCT-KEYS" >< / script
> 285285 ```
286286
287287 > ** NOTE** : : Since we do change the library a bit in each release, to make sure your application doesn't get interrupted by automatic updates, use a specific version in your production environment, as shown above. Using a general major version like ` @7 ` is not recommended.
@@ -431,7 +431,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
431431 <video class =" dbrScanner-video" playsinline =" true" ></video >
432432 </div >
433433 <!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
434- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .0 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
434+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] .2 /dist/dbr.js" data-productKeys =
" PRODUCT-KEYS" ></
script >
435435 <script >
436436 let scanner = null ;
437437 (async ()=> {
0 commit comments