swipeleft와 swiperight 이벤트를 사용하여 링크 된 두 페이지가 있지만 다른 페이지로 스 와이프하면 jquery가 pageinit 이벤트를 발생시키지 않고 헤더와 보행인. changePage 이벤트를 사용해야합니까, 아니면 loadPage 이벤트를 사용해야합니까? 나는 pageinit 이벤트가 시작되지 않는 다른 버전의 jquerymobile에 버그가 있음을 알고 있지만 이미 이미 해결했지만 이벤트는 여전히 실행되지 않는 RC1을 사용하고 있습니다. 발사를 멈추고있는 게 뭐야? 미리 감사드립니다.jquery pageinit not firing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>esports</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" />
<link rel="stylesheet" href="jquery.zrssfeed.css" />
</script>
<style>
</style>
</head>
<body>
<!-- index -->
<div data-role="page" id="index">
<div data-role="header">
<h1>esports times</h1>
</div>
<!--/header-->
<div data-role="content" id="content">
<div id="currentFeed">teamliquid. skgamin</div>
<ul id="rssFeed" data-role="listview">
</ul>
</div>
</div>
</body>
</html>
<!-- load javscripts here-->
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"> </script>
<script src="jquery.zrssfeed.js"></script>
<script>
$('#index').bind("pageinit", (function() {
$('#rssFeed').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
limit: 10,
date: false,
});
}));
$('#index').bind("swipeleft", function() {
$.mobile.changePage("teamliquid.html", "slide", true, false);
});
</script>
<!-- /javascript-->
이것은 아마도 내가 찾고있는 것이지만 단지 윈도우 7 전화 틈새가 스 와이프 이벤트를 지원하지 않는다는 것을 깨달았습니다. :(도움을 주셔서 감사합니다, 많이 감사합니다. –