---
title: "ajax"
author: "tsailer"
date: "2011-05-27T14:18:15Z"
tags: ["Ajax", "HTML", "Microsoft", "XHTML"]
categories: ["Web前端"]
slug: "ajax"
draft: false
lastmod: "2011-05-27T14:21:10Z"
id: 1061333
url: "https://tsailer.iteye.com/blog/1061333"
---

# This is an ajax demo

The fetch message will appear here

\[color=blue]注意该html文件夹下要有一个data.txt 同时要在服务器上才能有相应的效果\[/color] [](#)指向本连接，不刷新页面 可以用 \[color=blue]window.onbeforeunload = function(){ alert("refresh or close this page!");};\[/color]看是否刷新页面