可以使用以下代码实现:// 当点击按钮时 $(‘button’).click(function(){ // 打开新页面 window.location.href = “http://www.example.com”; });