简体   繁体   English

JavaScript中是否有任何窗口管理库?

[英]Is there any window management library in JavaScript?

I have many browser windows, opened from JavaScript. 我有很多从JavaScript打开的浏览器窗口。 And I want to manage them - place cascade, tile and resize them all at the same time. 我想管理它们-同时放置级联,平铺和调整它们的大小。 Are there any libraries that can help me? 有没有可以帮助我的图书馆?

I really don't know if JavaScript is allowed to access anything besides the window it is currently running in. Just think about the different browser implementations eg when a browser always opens a new tab instead of a window (you can't resize and place them), or opens it as a child window inside the application (as Opera does) etc. Just because of that I don't think it is possible in a proper way. 我真的不知道是否允许JavaScript访问其当前正在运行的窗口以外的任何内容。只需考虑不同的浏览器实现,例如,当浏览器始终打开新标签页而不是窗口时(您无法调整大小和放置位置)它们),或将其作为应用程序内的子窗口打开(就像Opera一样)。正因为如此,我认为无法通过适当的方式实现。

If you really need a more sophisticated JavaScript window manager you might want to take a look at ExtJS . 如果您确实需要更复杂的JavaScript窗口管理器,则可能需要看一下ExtJS It generally gives you move control over your entire user interface. 通常,它使您可以控制整个用户界面。

In the past I would have just used the DOM standards documentation to figure out what I can do as a starting place. 在过去,我只是使用DOM标准文档来确定我可以做的起点。 www.w3.org/TR/Window/ www.w3.org/TR/Window/

If you are looking for a simple library that you can use, which will work well across browsers I would take a look at jquery. 如果您正在寻找一个可以使用的简单库,它将在所有浏览器中都能很好地工作,那么我来看看jquery。 http://jqueryui.com/ http://jqueryui.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM