我正在尝试使用$.mobile.changePage
,但它不起作用。这是我的代码
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
</head>
<body>
<div data-role="page" id="p1">
<div data-role="header"><h2>DKT</h2></div>
<div data-role="content">
<div id="sw1"></div>
<div id="sw2"></div>
</div>
<div data-role="footer">...</div>
</div>
<script>
$.mobile.changePage("#qu");
</script>
<div data-role="page" id="qu">
<div data-role="header"><h2>DKT</h2></div>
<div data-role="content">
<fieldset class="ui-grid-a">
<div class="ui-block-a"><button>Nein</button></div>
<div class="ui-block-b"><button>Kaufen</button></div>
</fieldset>
</div>
</div>
</body>
</html>
我已经收到错误TypeError: 'undefined' is not an object (evaluating 'i.trigger')
我已经尝试更改为“ http://www.google.com ”:仍然出现相同的错误
编辑: