html += ""; html += ""; $(".comment-list").prepend(html); // console.log(data); $(".pinglun span i").html(parseInt($(".pinglun span i").html()) + 1); $(".pinglun1").html(parseInt($(".pinglun span i").html()) + 1); }) } else { alert("您已经评论过了"); } } }); }); function reloadcode() { document.getElementById('reloadverify').src = document.getElementById('reloadverify').src + '?' + Math.random(); } function review_select(id, p, pagesize,type) { var p = p ? p : 1; var pagesize = pagesize ? pagesize : 10; var html = ""; $.ajax({ url: "/Article/review_select.html", dataType: "jsonp", jsonpCallback: "jsonpReturn", data: { id: id, p: p, pagesize: pagesize, type:type } }).done(function (data) { if (data.num > 0) { $.each(data.data, function (index, value) { html += "
  • "; html += "
    "; if (value.photo == "" || value.photo == undefined || value.photo == "undefined") { html += ''; } else { html += ''; } html += "
    "; html += "
    "; html += "

    "; html += " "; if (value.user_id == 0) { html += "匿名"; } else { html += value.username; } html += "" + value.date + "

    "; html += "

    " + value.comment + "

    "; html += "
    "; html += "
  • "; }); $(".comment-list").append(html); } else { $(".load-comment").html(""); } // $(".answer_tbody").html(html); // $(".m-page").html(data.show); // console.log(data); }) .error(function (data) { }) }
    联 系我 们 在 线客 服 填 报志 愿 返 回顶 部

    X