1.
json file 2. how to call local json file
3. summary
Foreword: I
have this requirement because I need to use a local json file to make the dashboard,
and after searching it around.
It is found that calling the local json file directly will be rejected by the system,
so you can only establish a route and host the file so that it can be called.
However, there is an additional process of opening the route, and the experience is slightly weaker, but it can simulate the process of connecting to the server.
There may be some not easy to understand in the picture, in
short, it is to manage the folder through routing
html:
<script type="text/javascript"><