无法使用“Spinner”选项(jQuery UI 选项卡)
根据 http://jqueryui.com/demos/tabs,通过 AJAX 加载内容的选项卡将显示内容加载时“正在加载...”。如果您想自定义此消息,您可以(据说)设置 spinner
选项:
$("#tabs").tabs({ spinner: "Just a sec..."});
但是,我遇到了这些问题:
- 设置
spinner
选项似乎不起作用即使 - 我没有设置
spinner
选项,“正在加载...”也不会出现 - 在“Content via Ajax”演示中,“正在加载...”不会出现http://jqueryui.com/demos/tabs!
有什么想法吗?
According to http://jqueryui.com/demos/tabs, tabs that load content via AJAX will show "Loading..." while the content loads. If you want to customize this message, you can (supposedly) set the spinner
option:
$("#tabs").tabs({ spinner: "Just a sec..."});
However, I'm having these problems:
- Setting the
spinner
option doesn't seem to work - Even when I don't set the
spinner
option, "Loading..." doesn't appear - "Loading..." doesn't appear for me on the "Content via Ajax" demo on http://jqueryui.com/demos/tabs!
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我找到了答案(http://osdir.com/ml /jquery-ui/2009-04/msg00769.html) -- 选项卡的内容需要包含在
中:
不用说,这非常疯狂这是:
Okay, I found the answer (http://osdir.com/ml/jquery-ui/2009-04/msg00769.html) -- the contents of the tab need to be enclosed in a
<span>
:Needless to say, it's pretty insane that this is: