(滑轨)什么是" RJS"? [英] (Rails) What is "RJS"?

查看:154
本文介绍了(滑轨)什么是" RJS"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了传递的博客文章和教程中提到RJS和RJS模板。我做了搜索,但我仍然不能确定它。它是一个技术,具体到Rails的,而不是像JSON或YAML标准?

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 Rails, rather than a standard like JSON or YAML?

我知道这是用于生成JavaScript。是否生成通用JS或者Rails的具体要求JS的原型和Scriptaculous库?

I understand it's used for "generating JavaScript." Does it generate generic JS or Rails-specific JS requiring the Prototype and Scriptaculous libraries?

推荐答案

这Railscast 提供使用RJS添加和删除动态表单字段没有击中服务器与Ajax调用的一个很好的例子。

This Railscast gives a nice example of using RJS to add and remove form fields dynamically without hitting the server with an ajax call.

这些RJS提示也可能会有所帮助。

这篇关于(滑轨)什么是" RJS"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆