“`
.ajax({
type: “GET”,
url: “test.json”,
data: {username:("#username").val(), content:(“#content”).val()},
dataType: “json”,
success: function(data){(‘#resText’).empty(); //清空resText里面的所有内容
var html = ”;
$.each(data, function(commentIndex, comment){
html += ‘
$.ajax
最新推荐文章于 2023-06-23 22:48:17 发布
’ + comment[‘username’]
+ ‘: