JS给按钮添加跳转功能类似a标签 方法window.location.href="要跳转的URL";或window.location="要跳转的URL";或location="要跳转的URL";示例&l 按钮添加跳转功能