按照 Rails4 文档,使用 render js: , 页面上给出:Security warning: an embedded tag on another site requested protected JavaScript. If you know what you're doing, go ahead and disable forgery protection on this action to permit cross-origin JavaScript embedding. 谷歌搜索了,没有找到一个清晰的解决办法。Rails 新手,请多指教!谢谢