<div>
<input type="button" value="下载" οnclick="download();" />
</div>
<script type="text/javascript">
function download() {
alert("something ...");
...
}
</script>
这段代码在Firefox下执行,点击按钮不会调用download函数,可能是函数名与Firefox冲突,改成其他名字运行正常。