<form> <button>确定</button> </form> 你在form中写了一个button标签,有时候就会刷新页面; 想要这个button不刷新页面, 就把form中的button改为 <input type=”button”> 欢迎关注我的个人技术公众号!javascript艺术