<a>链接标签导致的错误
<a href="" onclick="function()"?>确定</a>
每次点击确定的会将function()中的方法执行完,然后
就会跳到上一层目录去,所以href属性一点要写成:
<a href="#" onclick="function()"?>确定</a>