通用的 createPopup() 替换? [英] A universal createPopup() replacement?

查看:18
本文介绍了通用的 createPopup() 替换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前 createPopup() 仅在 IE 中受支持(参见 http://help.dottoro.com/ljsxcrhv.php).

Currently createPopup() is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php).

是否有通用的 createPopup() 替代品?还是需要基于浏览器检测的条件代码?

Is there a universal createPopup() replacement? Or is conditional code required based on browser detection?

希望我正在寻找的东西不仅提供相同的功能,而且具有相同的界面,或者至少可以提供无需太多工作即可创建 createPopup() 克隆的成分.

Hopefully, I am looking for something that not only provides the same functionality, but has the same interface or at least could provide the ingredients to create createPopup() clone without too much work.

推荐答案

您可能想查看一些 JavaScript 库.Dojo、Yahoo UI 或 JQuery 之类的东西可以帮助封装大多数特定于浏览器的头疼问题.例如,对于 Dojo,请查看 http://dojotoolkit.org/api/.这将为您提供与 createPopup() 类似的功能.

You may want to look at some of the JavaScript libraries out there. Things like Dojo, Yahoo UI, or JQuery can help to encapsulate most of the browser-specific headaches. For example, with Dojo, take a look at http://dojotoolkit.org/api/. This would get you similar functionality to createPopup().

这篇关于通用的 createPopup() 替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆