以绑定click弹窗的方式,改为普通的链接,即 a[target=_blank],在点击打开新窗口之前,修改其href。 绑定mousedown,鼠标点击执行完成前修改href。 绑定focus,保证tab切换+enter时替换href。