您是否打算关闭javascript? [英] Do you plan for javascript being off?

查看:103
本文介绍了您是否打算关闭javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我自己编写了一个相当大而复杂的网站,那么您认为我需要支持关闭JavaScript吗?

I'm coding a fairly large and complex site by myself, so do you think I need to support javascript being turned off?

还有很多额外的工作,支持对我可以快速使用JSON和ajax进行处理的全页回发.

Its a lot of extra work supporting full page postbacks for stuff I could quickly do with JSON and ajax.

推荐答案

无论如何,无论是否来自AJAX,您都需要编写服务器端代码来处理这些帖子.

You need to write server-side code in any case to handle the posts, whether they are from AJAX or not.

那么为什么不按照 DRY原理进行编码,并重复使用相同的逻辑标准回发和AJAX请求?

So why not code according to the DRY principle, and reuse the same logic for standard postbacks and AJAX requests?

这篇关于您是否打算关闭javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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