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