2013-06-25 36 views

回答

6

documentation可以使用data-collapsed=false

<div data-role="collapsible-set"> 

    <div data-role="collapsible" data-collapsed="false"> 
    <h3>Section 1</h3> 
    <p>I'm the collapsible set content for section 1.</p> 
    </div> 

    <div data-role="collapsible"> 
    <h3>Section 2</h3> 
    <p>I'm the collapsible set content for section 2.</p> 
    </div> 
</div> 
5

你也可以做到這一點通過對pageinit事件代碼:

$("#myCollapsibleSet").children(":first").trigger("expand"); 

假設#myCollapsibleSet是你的可壓縮集的ID。

+1

+1爲動態答案:) – Omar

+0

謝謝@Omar ji :) – krishgopinath

+1

+2 @passionateCoder謝謝 –

相關問題