智慧树自动播放

首先是chrome的插件制作方式

其次是获取iframe内对象时应注意

1.父级页面获取iframe页面中的元素对象(关键contentWindow):

document.getElementById(iframe的id).contentWindow.document.getElementById(iframe页面元素id)

2.iframe页面获取父级页面的元素对象(关键window.parent):

window.parent.document.getElementById(父级页面的元素id)

另现有智慧树自动播放简易插件在这里

猜你喜欢

转载自blog.csdn.net/studyForWhat/article/details/88240716
今日推荐