【发布时间】:2011-04-22 21:36:07
【问题描述】:
是否可以像这样链接jQuery模板的appendTo方法:
$("#total-costs-template").tmpl({ CurrentMortgage: vm.currentMortgage, Products: products }).appendTo("#total-costs-analysis").find("#total-costs-month").click(function () {
alert('test');
});
我记得之前做过,但在上面的代码中它不起作用,但我也没有收到错误。
【问题讨论】: