Discussions » Creation Requests

点击一个按键

§
Posted: 20 Juli 2017
Edited: 20 Juli 2017

点击一个按键

这个是我要点击的

href="#" class="treasureMapPopup-action-button highlight" onclick="app.views.TreasureMapView.map.discard(this); return false;">Leave

UPGRADE<

然后我想点击leave 怎么写啊

§
Posted: 20 Juli 2017

麻烦看下

hoothinMod
§
Posted: 21 Juli 2017

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);

Post reply

Sign in to post a reply.