<html lang="en" charset="UTF-8">
<head >
<meta >
<title>Document</title>
<style type="text/css">
div{
text-align:center;
}
</style>
<script type="text/javascript">
var i=1;//设置全局变量
function dz()
{
var a=document.getElementById("zs");
a.innerHTML=i;
i++;
}
</script>
</head>
<body>
<div><input type="button" name="a1" οnclick="dz()"/ value='点赞'><div>
<div>赞数:</div>
<div><a style="color:orange;" id="zs" >0</a></div>
</body>
</html>