首页
软件开发
登录
6mi
u
盘
搜
搜 索
软件开发
JS - json jquery
JS - json jquery
xiaoxiao
2022-07-07
180
$("#loadtxt li:even").load("data.txt"); $.getJSON("data.json", function(data) { var output = "<ul>"; $.each(data, function(key, value) { output += "<li>" + value.name + "</li>"; }) output += "</ul>"; $("#update").prepend(output); })
转载请注明原文地址: https://yun.8miu.com/read-30564.html
最新回复
(
0
)