0
접을 수있는 div의 스타일이 업데이트되지 않습니다. 최신 jquery-mobile 1.2.0 버전을 사용하고 있습니다. 내 코드는 다음과 같습니다. Pls는jquery mobile 1.2.0에서 접을 수있는 div에 대한 스타일이 업데이트되지 않습니다.
HTML을 사용
<div data-role="page" id="eventDetails">
<div data-role="content">
<div data-role="collapsible-set" class="collapsibleSetClass">
<div data-role="collapsible" data-content-theme="b" class="collapsibleClass">
</div>
</div>
</div><!-- /content -->
</div>
자바 스크립트 누락되는 사항에 대한 조언 : 당신은 아직 초기화되지 않은 위젯을 새로 고치려고
$(document).bind("mobileinit", function(){
$.mobile.changePage.defaults.changeHash = false;
$.mobile.collapsibleset.prototype.options.initSelector = ".collpasibleSetClass";
initEvents();
});
var initEvents = function(){
$.mobile.changePage("#eventDetails", { transition: "slide"});
var $description = $('.collapsibleClass');
$description.html('');
var $title = $('<h3/>').append(eventObj.eventTitle);
var $eventDetails = $('<p/>').append(eventObj.eventDescription);
$description.append($title).append($eventDetails);
$('.collapsibleSetClass').collapsibleset("refresh");
}