In the same file directory, that is, html files and json files are accessed directly with ajax in the same directory, and cross-domain errors are reported.

in the same file directory, the html page uses ajax to request the json file. There is no problem in opening it in hbuilder. If you open the page directly in the folder, you will report a cross-domain error. How to solve this problem

Mar.18,2021

the file:// protocol that opens local files directly cannot use xhr, and a local server must be built.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e06d-2b122.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e06d-2b122.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?