ITeye博客

rails页面技巧

yangbinfc · 2011-03-02 18:48 · Markdown

1:create.js.erb

中 :$("#comments").append("<%= escape_javascript(render @comment)%>"); 插入_comment局部模板用escape_javascript生成一段舞script标记的代码

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。