也许你可以帮助我。 我想自动创建jquerymobile崩溃(http://jquerymobile.com/test/docs/content/content-collapsible.html)使用JavaScript的内容,就像这样:自动折合html内容
<h3>title 1</h3>
some text
<h3>title 2</h3>
some text
<h3>title 3</h3>
some text
此内容来自JSON,我不能前操纵。
我必须包装每个:
<h3>title</h3>
some text
与此:
<div data-role="collapsible" data-collapsed="true"></div>
但它不工作...帮助!
你说你不能这样做,你试过了吗?听起来像你一样。要么粘贴一些代码,要么共享一个jsfiddle! – sircapsalot
“也许你不能帮助我”:'( – Toping
纠正“can”;) – MatthieuH