说“JavaScript”是多余的吗?阿贾克斯”?

发布于 2024-08-30 06:23:02 字数 264 浏览 3 评论 0原文

在我最近的一次讨论中,有人告诉我这样说是不正确的,因为 Ajax 已经是 Javascript 了。

上下文:

“如何在网页中 blablablabal 以便不必刷新页面”

我的答案:

“使用 JavaScript + Ajax”

编辑

好吧,是的,那么……该怎么说呢? “使用 AJAX”?或“使用Javascript”?

In a recent discussion I had, somebody told me that is incorrect to say that because Ajax is Javascript already.

The contenxt:

"How do I blablablabal in a webpage so it doesn't have to do a page refresh"

My answer:

"Use JavaScript + Ajax"

EDIT

Ok, it is, so... how should I say it? "Use AJAX"? or "Use Javascript"?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

诗酒趁年少 2024-09-06 06:23:02

AJAX = 异步 JavaScript 和 XML

因此,是的,AJAX 将 JavaScript 作为其构建块之一。

AJAX = asynchronous JavaScript and XML

So, yea, AJAX has JavaScript as one of its building blocks.

最丧也最甜 2024-09-06 06:23:02

在这种情况下,我认为这是多余的,因为您专门讨论如何在没有完整请求的情况下将数据获取到页面上。如果您谈论的是如何实现界面,包括许多不严格发出请求的行为,那么我会说不。您只需区分单独使用 javascript 进行某些操作和使用 AJAX(包括 javascript)使用服务器中的数据动态更新页面即可。例如,如果您从不发出异步请求,那么说您使用 AJAX 来执行某些页面动画是不正确的,因此它们是不可互换的。不过,在通过 AJAX 检索数据的上下文中,它涉及 javascript,这应该足够了。在这种情况下,无需说明。

In this context, I think that it is redundant because you're specifically talking about how to get data onto the page without a full request. If you were talking about how you implemented your interface, including many behaviors that aren't strictly making requests, then I would say no. You'd simply be making a distinction between using javascript alone for some things and AJAX (including javascript) for dynamically updating the page with data from the server. It wouldn't be correct to say, for example, that you used AJAX to do some page animations if you never make an asynchronous request -- so they are not interchangeable. It should be sufficient, though, in the context of retrieving data via AJAX that it involves javascript. In that context it doesn't need to be stated.

心如狂蝶 2024-09-06 06:23:02

是的,这是多余的。

除非……您可以提供一个不使用 JavaScript 的 AJAX 示例……但也许它不应该被称为 AJAX。 ;)

Yes, it is redundant.

UNLESS....... you can provide an example of AJAX that does NOT use JavaScript... but then maybe it shouldn't be called AJAX. ;)

若无相欠,怎会相见 2024-09-06 06:23:02

是的。

AJAX 代表异步 Javascript 和 XML。

Yes.

AJAX stands for Asynchronous Javascript And XML.

喜你已久 2024-09-06 06:23:02

从技术上来说并不多余——在 IE 中你可以使用 vbscript (AVAX?) 来执行 ajax。

但你可能会被嘲笑...

Not technically redundant - in IE you can do ajax with vbscript (AVAX?).

But you will probably get mocked...

秋风の叶未落 2024-09-06 06:23:02

好吧,我同意没有 JavaScript 就无法真正实现 Ajax...

AJAX = 异步 JavaScript 和 XML

Well, I would agree that you can't really do Ajax without JavaScript...

AJAX = Asynchronous JavaScript and XML

笙痞 2024-09-06 06:23:02

“某人”是对的,javascript ajax - 但是“javascript”可以是非常多的,所以说你的意思是 ajax 以这种方式是正确的......你为什么不直接说“使用 ajax !” ?

"somebody" is right, javascript is ajax - but "javascript" can be very much, so saying you mean ajax would be right in this way... wy don't you just say "use ajax!" ?

原野 2024-09-06 06:23:02

最有可能的是,简单地向提出这个问题的人说出“ajax”只会让他们更加困惑。如果他们了解 ajax,那么他们就会知道,这是一种用于“在网页中进行 blablablabal 操作,这样就不必进行页面刷新”的技术。

在论坛帖子或类似帖子中,如果您想尽可能简洁,只需声明“ajax”就足够了。我希望阅读的人只需用谷歌搜索“Ajax”即可找到相关信息。

但是,如果您想提供更多帮助,那么也许需要一个稍微长一点的答案。

Most likely simply stating "ajax" to someone who is asking this question will just confuse them further. If they know about ajax then they know, it is a technique used to "blablablabal in a webpage so it doesn't have to do a page refresh".

In a forum post or similar, simply stating "ajax" would be sufficient if you wanted to be as terse as possible. I'd expect someone reading to simply google "Ajax" and find out about it.

However, if you want to be more helpful, then perhaps a slightly more lengthy answer is in order..

溺渁∝ 2024-09-06 06:23:02

Ajax 是一个流行词,意思是“使用 JavaScript 发出 HTTP 请求而无需离开网页”。所以是的,这是多余的。在某些情况下,“JavaScript,包括 Ajax”比“Ajax”更有意义,但“JavaScript + Ajax”有点愚蠢。

但在这种情况下,我想说:

“使用 Ajax,这里有一个指南的链接,解释它是什么以及如何使用它”

或者我会解释它是什么。不要只是把流行语扔在那里。

Ajax is a buzzword which means "Using JavaScript to make HTTP requests without leaving a webpage". So yes, it is redundant. There are contexts where "JavaScript, including Ajax" makes more sense then "Ajax", but "JavaScript + Ajax" is somewhat silly.

In this context though, I would say:

"Use Ajax, here is a link to a guide that explains what it is and how to use it"

or I'd explain what it is there and then. Don't just throw the buzzword out there.

半仙 2024-09-06 06:23:02

AJAX 的含义超出了其最初的缩写。您可以在没有 javascript、没有 xml 的情况下执行 AJAX,甚至不必使用异步编码(尽管您可能应该这样做)。当我们使用 Web 套接字并且所有浏览器都支持超越函数式编程的怪异新编程语言时,人们仍然会称其为 AJAX,这使得 2050 年的多线程编程变得简单直观。

将“ajax”视为“具有通信功能的动态 Web 内容”网页和服务器之间”——这就是现在的使用方式。指定您正在使用 javascript 来实现它在该解释中并不多余。

AJAX has taken on its own meaning beyond its original acronym. You can do AJAX without javascript, without xml, and you don't even have to use asynchronous coding (although you probably should). People will still be calling it AJAX when we're using web sockets and when all browsers support the freaky new programming language beyond functional programming that makes multithreaded programming easy and intuitive in 2050.

Think of "ajax" as meaning "dynamic web stuff with communication between web page and server"--that's how it's used nowadays. To specify you're using javascript to achieve it is not redundant in that interpretation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文