如何用YUI获取窗口的宽度和高度?
我如何获得这些值?我在 YUI 页面上看到了执行此操作的示例,但使用了单击事件,然后在事件目标上调用 get('winWidth') 方法。但是如何在不使用任何事件的情况下获得这些值呢?谢谢
How do I get those values? I see the example on the YUI page to do this but using a click event, and then calling the get('winWidth') method on the event target. But how can I get these values without the use of any event? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请
记住,您可以减少 YUI 命名空间,如下所示
Simply
keep in mind you can reduce YUI namespace as shown bellow