例如:
function getLocal(urlData){
<--1 ../sys/json/map.json -->
<--2 result=[{"id":"1","province":"河北省","area":"天津市","homename":"水滴体育场","homeaddr":"天津市水滴体育场","location":"117.182541,39.079694"},{"id":"2","province":"河北省","area":"天津市","homename":"机场","homeaddr":"天津市滨海国际机场","location":"117.367224,39.140025"}]; -->
reg=eval(result);
if(reg.length<1){
$("#store-list").children().remove();
$("#store-list").append("<div style='text-align: center;line-height: 50px;'>暂无搜索的网点</div>");
return false;
}
如何将JSON文件内容在JS调用
<--1-->替换 <--2-->内容