首页 > 代码库 > jQuery_mobile页面跳转事件学习
jQuery_mobile页面跳转事件学习
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js">
</script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
console && console.log($(this).attr(‘id‘) + "-document ready执行");
});
$(document).on(‘pagecreate‘, ‘[data-role="page"]‘, function(){
console && console.log($(this).attr(‘id‘) + " - pagecreate!!");
});
$(document).on(‘pagebeforecreate‘, ‘[data-role="page"]‘, function(){
console && console.log($(this).attr(‘id‘) + " - pagebeforecreate!!");
});
$(document).on(‘pagebeforeshow ‘