Ajax被认为是客户端脚本还是服务器端脚本?

时间:2022-02-10 15:12:52

Is Ajax considered as client or server side scripting?

Ajax被视为客户端或服务器端脚本吗?

4 个解决方案

#1


7  

The technology which co-ordinates the AJAX approach (i.e. javascript) is client-side, although server-side scripts/servlets are needed to give the response.

协调AJAX方法(即javascript)的技术是客户端,尽管需要服务器端脚本/servlet来给出响应。

#2


2  

Client side scripting.

客户端脚本。

However, Microsoft has also released server controls which ajaxify their ASP.NET pages, like the updatepanel control. Those are server side. Note that this is a specific implementation.

然而,微软也发布了服务器控制,这也使他们的ASP变得更加复杂。NET页面,如updatepanel控件。这是服务器端。注意,这是一个特定的实现。

#3


2  

Client. It runs on the browser only, and make requests to a server, just like the requests browsers do for any web page

客户端。它只在浏览器上运行,并向服务器发出请求,就像任何web页面的请求浏览器一样

#4


0  

Ajax is client side, but it will (almost always) access a server that is providing the data.

Ajax是客户端,但它(几乎总是)访问提供数据的服务器。

Sometimes the server scripts will have no specific support for Ajax as they are just returning XML style data, but in other cases the server may have specific support written in - for example in the popular case of JSONP.

有时,服务器脚本没有对Ajax的特定支持,因为它们只是返回XML样式的数据,但是在其他情况下,服务器可能有编写的特定支持—例如在流行的JSONP中。

[EDITED ANSWER]

(编辑回答)

#1


7  

The technology which co-ordinates the AJAX approach (i.e. javascript) is client-side, although server-side scripts/servlets are needed to give the response.

协调AJAX方法(即javascript)的技术是客户端,尽管需要服务器端脚本/servlet来给出响应。

#2


2  

Client side scripting.

客户端脚本。

However, Microsoft has also released server controls which ajaxify their ASP.NET pages, like the updatepanel control. Those are server side. Note that this is a specific implementation.

然而,微软也发布了服务器控制,这也使他们的ASP变得更加复杂。NET页面,如updatepanel控件。这是服务器端。注意,这是一个特定的实现。

#3


2  

Client. It runs on the browser only, and make requests to a server, just like the requests browsers do for any web page

客户端。它只在浏览器上运行,并向服务器发出请求,就像任何web页面的请求浏览器一样

#4


0  

Ajax is client side, but it will (almost always) access a server that is providing the data.

Ajax是客户端,但它(几乎总是)访问提供数据的服务器。

Sometimes the server scripts will have no specific support for Ajax as they are just returning XML style data, but in other cases the server may have specific support written in - for example in the popular case of JSONP.

有时,服务器脚本没有对Ajax的特定支持,因为它们只是返回XML样式的数据,但是在其他情况下,服务器可能有编写的特定支持—例如在流行的JSONP中。

[EDITED ANSWER]

(编辑回答)