实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.css">
5
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
6
<script src="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
7
<script>
8
$(document).on("pageload",function(){
9
  alert("pageload event fired - the external page has been successfully loaded and inserted into the DOM!");
10
});
11
</script>
12
</head>
13
<body>
14
15
<div data-role="page">
16
  <div data-role="header">
17
    <h1>Header Text</h1>
18
  </div>
19
20
  <div data-role="content">
21
    <a href="externalpage.html">External page</a>
22
  </div>
23
24
  <div data-role="footer">
25
    <h1>Footer Text</h1>
26
  </div>
27
</div> 
28
29
</body>
30
</html>