다음 코드에서 "테스트"li이 보이지 않는 이유를 알아내는 사람이 있습니까? 라이브 DOM을 검사하고 요소가 처리되는 것 같습니다 :jQuery 모바일 동적 콘텐츠 삽입
<!DOCTYPE HTML>
<html>
<head>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script>
$(document).ready(function(){
$('<div data-role="content" class="content"><ul data-role="listview" data-inset="true"><li><a href="#im?at=animals">test</a></li></ul></div>').appendTo("#home").page();
$.mobile.changePage("#home", {transition: "none"});
});
</script>
</head>
<body>
<div id="home" data-role="page">
</div>
</body>
</html>
미리 감사드립니다.
올바른 jquery 모바일 메소드가 표시되는 것을 알고 있습니까? 나는 그것이 changePage가 transition none으로 할 것이라고 생각했다. – Matrym
나는 왜'test'의 조상을 검사하여'test'가 보이지 않는지 알아 보았고 그 중 하나 (적어도)는'display : none'을 발견했다. – Minras