1
出於某種原因,當我在show.js.erb文件中使用的link_to,JavaScript的不工作...的link_to在.js.erb文件
這工作:
$(".commentvotecount<%= params[:commentid]%>").html("<%= positiveVoteCount = @comment.plusminus %>");
這不:
$(".commentvotecount<%= params[:commentid]%>").html("<%= positiveVoteCount = @comment.plusminus %> <%= link_to 'About', '/about' %>");
什麼問題出在哪裏?
謝謝。
工作。謝謝!將在10分鐘內接受答案... – user749798 2013-03-19 03:06:36