1
當我傳遞下面的jquery anchor對象時,我的jquery模板顯示[object Object]。如何使用jquery模板實時運行jquery對象?
moreinfoAnchor = $("<a></a>");
moreinfoAnchor.attr('id', 'moreLink-' + this.id);
moreinfoAnchor.text("test");
jQuery的模板代碼:
$("#test").tmpl({
link: moreinfoAnchor
});
如何顯示jQuery的模板實際錨?