0
我有問題,當jquery追加字符串,而不是標籤。 這裏是我的代碼:附加jquery
$('.nested_comments_'+<%= @comment.parent.id %>).append("<div class='<%= 'nested_comments nested_comments_'+ @comment.id.to_s%>'></div>")
,這導致
"<div class='nested_comments nested_comments_584'></div>"
而不是HTML標籤。我究竟做錯了什麼?
你缺少最後')'; – andlrc 2013-02-28 12:52:43
我擁有它,只是在複製時錯過了 – 2013-02-28 12:58:05