---
title: "ajax更新页面,只能更新一次"
author: "小笨熊"
date: "2007-04-20T11:54:31Z"
tags: ["Ajax", "IE", "JSP"]
slug: "ajax"
draft: false
lastmod: "2007-04-20T11:54:31Z"
id: 72811
url: "https://qs-21th.iteye.com/blog/72811"
---

写了一个鼠标的动态提示标签：主要用来显示图片的说明信息或文字的说明信息！

问题：页面完好，可以显示提示标签，但数据只能是第一次的（得不到更新）。

问题分析：这是因为IE缓存问题，所以要有页面更新才可以。

解决方案：随便给页面上加个随机数，一切OK！

如：&lt;script&gt;var url="aaa.jsp?id="+id+"&time="+new Date().getTime();&lt;/script&gt;