火狐中使用 window.location.reload();不会刷新表单的值,而谷歌会使用下面这个就可以解决火狐的问题window.location.href=window.location.href;