闲者博客 - 读取
https://bk1314.com/tag/%E8%AF%BB%E5%8F%96/
-
一段JS读取内容 这样前台静态加载到页面
https://bk1314.com/47.html
2022-02-26T17:40:48+08:00
function setPublicKey() {
$.getJSON('zzs.json', function(packJson){
var strjson = "";
for(var p in packJson){
strjson+= packJson[p].key+"<br>";
}
var mazey=document.getElementById("jg");
mazey.innerHTML="这里是返回内容:<br><br>"+strjson;
});
}