My javascript won't work as it should

前端 未结 5 1775
闹比i
闹比i 2021-01-17 01:40

I\'m trying to create a website in HTML which recieves JSON-formatted data using javascript and, then it will be injecting that data into my website.

The problem is

5条回答
  •  猫巷女王i
    2021-01-17 02:37

    Mixing file and http is a bad because of increased security rules. I have a feeling that is the problem here. You can start up chrome so it is less strict with security rules.

    Try

    chrome.exe -–allow-file-access-from-files
    

    or

    chrome.exe --disable-web-security
    

    or kiosk mode

    chrome.exe  --enable-kiosk-mode
    

提交回复
热议问题