这让我疯了。我正在使用jQuery UI Accordion并且第一行保持打开状态。我希望默认关闭它,除非它被点击。我已经放入了主动:假。第一行仍然没有因负载而崩溃。
有人可以帮忙吗?
--You can try using nested table types here instead of using temp tables or simply UNIONALL
--Hope below example helps.
DECLARE
p_lst sys_refcursor;
BEGIN
--Assuming that all the SELECT statements have same number of columns as well as datatype
OPEN p_lst FOR
(SELECT 'AV',1 FROM DUAL
UNION ALL
SELECT'SH',2 FROM DUAL
UNION ALL
SELECT 'TK',3 FROM DUAL
);
END;
答案 0 :(得分:0)
您的代码中有一些错误(昏迷不足)
https://jsfiddle.net/Tintin37/togrrt34/1/
$(function() {
var icons = {
header: "ui-icon-circle-arrow-e",
activeHeader: "ui-icon-circle-arrow-s"
};
$("#accordion").accordion({
collapsible: true,
active: false,
heightStyle: "content",
icons: icons
});
$("#toggle").button().click(function() {
if ($("#accordion").accordion("option", "icons")) {
$("#accordion").accordion("option", "icons", null);
} else {
$("#accordion").accordion("option", "icons", icons);
}
});
});