<form>
<div class="form-group">
<button class="register-btn" onclick="personage()">
1</button>
<button class="register-btn" onclick="enterprise()">
2</button>
</div>
</form>
js
function personage() {
window.location.href = "/pc/new/successTips.html";
}
function enterprise() {
location.href = "/pc/new/successTips.html";
}
在button标签上加入type=“button”,重定向生效,暂不知道原因