jqueryui 选项卡在每次选择时都会重新加载

发布于 2024-10-09 20:57:26 字数 86 浏览 0 评论 0原文

每次我选择一个选项卡,该选项卡都会重新加载所有内容并丢失表单的所有内容等...

知道我应该在哪里解决这个问题吗?

谢谢, 贾斯

Every tiem I select a tab, the tab reload all the contents and loses all the content of the forms etc...

Any idea where I should look to solve this?

thanks,
Jas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

错爱 2024-10-16 20:57:26

然而这是一个老问题,但解决方案是设置缓存为真:

$(function() {
  $('selector').tabs({
    cache: true
  });
});

However it is an old problem but the solution is set cache true:

$(function() {
  $('selector').tabs({
    cache: true
  });
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文