且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery UI ajax选项卡 - 在加载选项卡中的链接时请求倍增

更新时间:2023-12-05 17:20:34

如果内容已被绑定,则需要设置标记,或者在标签更改时取消绑定内容。

You need to set a flag if the content has already been bound, or unbind the content on tab change.

类似 ui.panel.find ('a')。unbind()应该这样做。确保将其放在标签更改回调中。

Something like ui.panel.find('a').unbind() should do the trick. Make sure you put it in the tab change callback.