当前位置: 首页 > 工具软件 > jquery window > 使用案例 >

jquery 点击button跳转window.loction.href失效的解决

厉钊
2023-12-01

button必须加上type=button,不加的话则跳转失效

<button type="button" onclick="release()">解除绑定</button>
function release() {
  window.location.replace('./carBind.html')
}
 类似资料: