处理网站上的模式弹出窗口的最佳方法是什么?
添加它们的正确方法是
A) 在页面上隐藏 div 内容并在绑定到单击时显示它,
还是
B) 只是异步获取数据并将其加载到隐藏在页面上的空 div 中?
根据下面的回复...用例?这里:
1) 登录
2) 显示“带有社交共享内容的共享模式框”
3) 提交数据
Would the proper way to add them be
A) hiding the div contents on the page and showing it when bound to a click
OR
B) just fetching the data asynchronously and loading it into an empty div that's hidden on the page?
Per the responses below... Use cases? Here:
1) Logging in
2) Showing a "share modal box w/ social sharing stuff"
3) Submission of data
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我个人喜欢即时创建它们。
这是使用 jQuery UI 的对话框功能,但只是想动态创建示例。
I personally like to create them on-the-fly.
This is using jQuery UI's dialog feature, but just wanted to example creating on the fly.
我想说最好的方法是使用 FancyBox 插件
您需要的所有示例都有一个 演示在这里
I would say the best way to go far would be to use the FancyBox Plugin
All the examples you need have a DEMO here