简体   繁体   中英

Accessing JSON data from JavaScript on a web page

I have a moderately large JSON data file and I want to access it from the JavaScript code on my web page. What is the simplest way to do that? Should this be done on the client side, or is it better to do that on server side?

It can't be done on the client side. Use server to read and print content on page in needed for javascript format. If you want save it you also need to send content to server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM