浏览器窗口切换

分享 0 95
lzb
lzb LV1 6月27日 16:42 发表
<p style="margin-top: 0px; margin-bottom: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif;">浏览器窗口切换,步骤如下:</p><p style="margin-bottom: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif;">1、提出所有窗口句柄,并保存,比如保存为wins,wins是一个列表类型数据;</p><p style="margin-bottom: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif;">2、切换到最新窗口:{{wins[-1]}};</p><p style="margin-bottom: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif;">&nbsp; &nbsp; &nbsp;切换到第一个窗口:{{wins[0]}}。</p><p style="margin-bottom: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif;"><img src="http://talk-cdn.liumatest.cn/87ae2c69-7731-41c7-9731-f9cc4e1d0925.png" style="max-width:100%;"><br></p>
收藏(0)  分享
相关标签: 笔记
注意:本文归作者所有,未经作者允许,不得转载
0个回复
  • 消灭零回复