dojo选项卡式容器问题
我有一个带有 3 个选项卡的 TabContainer,这是我使用声明性方式创建的。容器的选项卡总数为 6 个,但是由于数据大小、服务器调用等原因,最后 3 个选项卡是通过编程添加的。我需要的是页面完全加载,然后进行 ajax 调用来获取数据并创建其他选项卡。我在 addOnLoad 方法中添加了此代码,但是 ajax 调用是在页面加载之前进行的。如何在页面加载后立即进行ajax调用?预先感谢你们,非常感谢你们的回复。
I have a TabContainer with 3 tabs which I create using the declarative way. The total number of tabs are 6 for the container, however the last 3 are added programmatically because of the size of the data, server calls, etc. What I need is for the page to fully load, then make the ajax call to get the data and create the other tabs. I added the code for this in the addOnLoad method, however the ajax call is being made before the page loads. How can I made the ajax call right after the page is loaded. Thank you guys in advance, your response is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了确保您的 javascript 代码在页面加载后执行,您所需要做的就是使用
All you need to do to ensure your javascript code executes after the page is loaded is to use