对不起,问题很模糊,但我实际上是因为我不能把我真正的问题写成文字,所以我不能谷歌.这是我正在使用的代码的一部分,我将在下面提出我的问题:
<script>
$(function() {
$( "#accordion0" ).accordion({
active: false,
collapsible: true,
heightStyle: "content"
});
$( "#accordion1" ).accordion({
active: false,
collapsible: true,
heightStyle: "content"
});
$( "#accordion2" ).accordion({
active: false,
collapsible: true,
heightStyle: "content"
});
$( "#accordion3" ).accordion({
active: false,
collapsible: true,
heightStyle: "content"
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
接下来我正在尝试做什么:如何组合代码,所以我没有代码的4倍重复.
第二个不太相关的问题是,有一个站点列出了这些jquery ui小部件的所有选项(例如:"active:false).我环顾四周找到了很多单独的例子,但没有列出完整的列表.