Link and execute external JavaScript file hosted on GitHub

前端 未结 15 1048
感动是毒
感动是毒 2020-11-22 04:08

When I try to change the linked reference of a local JavaScript file to a GitHub raw version my test file stops working. The error is:

Refused to exe

15条回答
  •  迷失自我
    2020-11-22 04:11

    Example


    original

    https://raw.githubusercontent.com/antelove19/qrcodejs/master/qrcode.min.js
    

    cdn.jsdelivr.net

    https://cdn.jsdelivr.net/gh/antelove19/qrcodejs/qrcode.min.js
    

提交回复
热议问题