如何更新不刷新页面 [英] how to update the page without refresh

查看:115
本文介绍了如何更新不刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Gmail中收到新的电子邮件时,页面全自动显示邮件,而清爽,这可怎么办呢?

In Gmail when a new email is received, the page automaticly show the mail without refreshing, how this can be done?

推荐答案

它使用AJAX完成。巧合的是,这个问题被标记为阿贾克斯。

It's done by using ajax. Coincidentally, the question was tagged "ajax".

从维基百科: http://en.wikipedia.org/wiki/Ajax_(programming

阿贾克斯(读/eɪdʒæks/;简写异步JavaScript和XML)。[1]是一组在客户端用于创建交互式Web应用程序相关的Web开发方式使用Ajax的Web应用程序可以检索数据服务器异步的背景,而不与显示和现有页的行为干扰。数据是使用XMLHtt prequest对象通常检索的。尽管名称,则不需要使用XML及请求不必是异步[2]

"Ajax (pronounced /ˈeɪdʒæks/; shorthand for Asynchronous JavaScript and XML)[1] is a group of interrelated web development methods used on the client-side to create interactive web applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not needed, and the requests need not be asynchronous.[2]"

这篇关于如何更新不刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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