(Rails) What is “RJS”?

后端 未结 3 785
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 18:42

I\'ve seen \"RJS\" and \"RJS templates\" mentioned in passing in blog posts and tutorials. I did a search, but I\'m still unsure about it. Is it a technology specific to Rai

3条回答
  •  执念已碎
    2020-12-13 18:59

    RJS is a template (similar to an html.erb file) that generates JavaScript which is executed in an eval block by the browser in response to an AJAX request. It is sometimes used (incorrectly?) to describe the JavaScript, Prototype, and Scriptaculous Helpers provided by Rails.

提交回复
热议问题