如何将 RJS 模板转换为 Coffeescript?
有谁知道如何将这段简单的 RJS 代码转换为咖啡脚本?
page.call 'RecordSelect.render_page', record_select_id, render_record_select(:partial => 'list', :locals => {:page => @page})
已经很晚了,我很难理解它。
Does anyone know how to convert this simple bit of RJS code into coffee-script?
page.call 'RecordSelect.render_page', record_select_id, render_record_select(:partial => 'list', :locals => {:page => @page})
It's late and I'm having trouble wrapping my head around it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,所以我发现你可以简单地在 erb 文件中使用它:
我猜这就是为什么我无法弄清楚如何使其成为直接的咖啡脚本。正如我所说,已经很晚了。 。 。
Okay, so I discovered you could simply use this in an erb file:
Which is I guess why I couldn't figure out how to make it straight coffee script. Like I said, it was late . . .