本帖最后由 sky94132003 于 2014-07-28 22:25:17 编辑

解决方案 »

  1.   


    $(".detailed").on("click", ".control .quote", function(t) {
        var e = $(this).closest(".post");
        if (!e.data().isTopicLocked) {
            t.preventDefault();
            var n = $(this).parents("table").data("postId");
            $.getJSON("/posts/" + n + ".json", function(t) {
                var n = t.content, i = e.find(".post_info"), o = $("#post_body");
                n = i.hasClass("topic") ? "" : "", "" !== o.val() && (n = "\n\n" + n), o.focus().val(o.val() + n)
            })
        }
    })
    其中代理的.quote就是引用按钮