js怎么读取本地的 json数据

2025-05-19 19:55:15
推荐回答(1个)
回答1:

用jquery提供的函数最简单有效:
$.getJSON("abc.json",function(data){ //data就是json对象了,不需要在转换 });