悬浮窗
<pre><code class="language-js">var floatingWindow=floaty.rawWindow(
<frame gravity="center">
<button id="stopButton" text="停止运行"/>
</frame>
)
floatingWindow.setPosition(0,300)
setInterval(() => {}, 1000);
floatingWindow.stopButton.click(()=>{
exit()
});
</code></pre>