麻烦看下
var inte=window.setInterval(function () {
if(document.querySelector(".treasureMapPopup-action-button")){
clearInterval(inte);
[].every.call(document.querySelectorAll(".treasureMapPopup-action-button"),function(i){
if(i.innerHTML=="Leave"){
i.click();
return false;
}
return true;
});
}
}, 1000);
点击一个按键
这个是我要点击的
href="#" class="treasureMapPopup-action-button highlight" onclick="app.views.TreasureMapView.map.discard(this); return false;">Leave
UPGRADE<
然后我想点击leave 怎么写啊