检查是否在 ruby​​ on rails 中启用了 javascript 和 cookie? [英] Check whether javascript and cookies are enabled in ruby on rails?

查看:52
本文介绍了检查是否在 ruby​​ on rails 中启用了 javascript 和 cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查在 Ruby on Rails 中加载页面时是否启用了 javascript 和 cookie.所以如果有人试图打开它,网站应该显示一条消息,他不能继续.

I want to check whether javascript and cookies are enabled or not on page load in Ruby on Rails. So if anyone tries to open it, website should display a message that he cannot proceed further.

推荐答案

你可以使用

You coud use the <noscript> ... </noscript> tag. For more information look here.

这篇关于检查是否在 ruby​​ on rails 中启用了 javascript 和 cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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