CSDN论坛文章中[引用]这按钮的JS有案例可参考下吗? 本帖最后由 sky94132003 于 2014-07-28 22:25:17 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $(".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就是引用按钮 JQuery获取浏览器关闭的事件函数 求教:基于jquery的地图生成 急急,表格拖选变颜色 谁知道.YQS是什么文件? js中map如何取值? JavaScript字符串比较 困惑 extjs template 怎么刷新 -----------对象不支持此属性或方法-------------- 框架关闭 动态插入table问题? 新手上路~ 求大神帮忙完成 JS 三级下拉菜单 Json字符串解析问题!
$(".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就是引用按钮