停止在每次点击时加载Jquery UI ajax选项卡内容 [英] Stop loading Jquery UI ajax tab content on each click

查看:79
本文介绍了停止在每次点击时加载Jquery UI ajax选项卡内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次单击时,有什么方法可以停止在Jquery UI选项卡中停止加载ajax内容.

is there any way to stop loading the ajax content in Jquery UI tabs each time, when we click.

推荐答案

我认为您不希望每次都使用ajax加载文档. 比您可以启用true的缓存选项. 它只会加载一次文档并将其保存在缓存中. http://jqueryui.com/demos/tabs/#option-cache

I think you want not to load document every time using ajax. Than you can enable cache option true. It will only load document one time and save it in cache. http://jqueryui.com/demos/tabs/#option-cache

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

这篇关于停止在每次点击时加载Jquery UI ajax选项卡内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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