2016-12-30
框架名:
var obj=$(window.frames["wangpan"].document).find("a[menu=download_one]"); for(var i=0;i<1;i++){ obj[i].click() }
无框架名:
$(‘iframe‘)[0].contentWindow.document.getElementById(). var obj=$(window.frames["wangpan"].document).find("a[menu=download_one]"); for(var i=0;i<obj.length;i++){ obj[i].click() } var url=‘‘; var aif=$(‘iframe[src*=download]‘); for(var i=0;i<aif.length;i++){ url+=aif[i].contentWindow.document.getElementsByTagName("a")[1].href + ‘<br>‘ } console.log(url) myWindow=window.open() myWindow.document.write(url)
遮罩 $("div[style*=1000000001]").css("display","none") $("div[style*=1000000001]").remove() 弹出 $("div[style*=1000000002]").css("display","none") $("div[style*=1000000002]").remove()
原文:http://www.cnblogs.com/daysme/p/6541333.html