加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

wicket框架-ajax原理

发布时间:2020-12-16 00:35:09 所属栏目:百科 来源:网络整理
导读:1.question:what is ajax? Ajax is an acronym for Asynchronous JavaScript and XML(异步JavaScript和XML)。 2.Jesse James Garrett lists the following technologies as the typical(rather than required) enablers for Ajax: ■ Standards-based pr
1.question:what is ajax?

Ajax is an acronym for Asynchronous JavaScript and XML(异步JavaScript和XML)。

2.Jesse James Garrett lists the following technologies as the typical(rather than required) enablers for Ajax:

■ Standards-based presentation using XHTML and CSS

■ Dynamic display and interaction using the DOM
■ Data interchange and manipulation using XML and XSLT
■ Asynchronous data retrieval using XMLHttpRequest
■ JavaScript binding everything together

3.difference with ajax:

The main difference between normal requests and Ajax requests is that normal

requests cause the whole browser window (or frame) to be refreshed,showing a blank
page while loading is in progress. With Ajax,requests are done in the background by
an Ajax engine (a script that is part of the page),and responses are interpreted by that
engine and typically used to replace part of the page.

简单来说,使用ajax技术利用异步的JavaScript和XML实现页面的动态局部刷新,

响应动作不需要整个页面加载,从而加快页面下载速度等好处。

4.principle:
normal:
ajax:

上图我们可以明白ajax的底层实现原理。

5.reference:
book: wicket in action.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读