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.
我正在使用加载函数来加载数据。我如何将其UI selectable应用于加载的数据。
UI selectable
您需要调用.selectable()您的load()回调函数:
.selectable()
load()
$("div").load("url_here", function(){ $(this).find("ul").selectable(); });
显然将div,url_here和更改ul为适合您的代码的变量。
div
url_here
ul