rails页面技巧
1:create.js.erb
中 :$("#comments").append("<%= escape_javascript(render @comment)%>"); 插入_comment局部模板用escape_javascript生成一段舞script标记的代码
1:create.js.erb
中 :$("#comments").append("<%= escape_javascript(render @comment)%>"); 插入_comment局部模板用escape_javascript生成一段舞script标记的代码
暂无评论。
评论功能维护中,当前仅展示历史评论。