Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Ajax 中创建了 3 个选项卡。当我在浏览器中单击刷新时,正在加载整个文档。但我只想加载当前打开的单个选项卡。 如何解决这个问题?
$("ul.tabs").tabs("div.panes > div"); $('#ajax-tab').one('click', function() { $('#ajax-pane').load('/some/path/that/returns/our/html'); });
Javascript代码