[HTML] 纯文本查看 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
window.onload=function () {
fun=function () {
var date = new Date();
// elementById.setAttribute("src","/day014/servletDemo6?data="+date.getTime());
img.src="/day014/servletDemo6?"+date.getTime();
}
var img = document.getElementById("check");
var a = document.getElementById("change");
img.onclick=fun;
a.onclick=fun;
}
</script>
</head>
<body>
<img src="/day014/servletDemo6" id="check">
<a href="#" id="change">妈耶我看不清换一张</a>
</body>
</html>