天天看點

js中模拟a标簽的點選事件

var a = document.createElement('a');
            a.target = "_blank";
            a.href = "personal";
            a.click();