案例:jquery Mobile案例     状态:可编辑再运行    进入横版
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<link rel="stylesheet" href="/js/jquery.mobile-1.3.2.min.css">
5
<script src="/js/jquery-1.8.3.min.js"></script>
6
<script src="/js/jquery.mobile-1.3.2.min.js"></script>
7
<script>
8
$(document).on("pageinit","#pageone",function(){
9
  $("p").on("tap",function(){
10
    $(this).hide();
11
  });                       
12
});
13
</script>
14
</head>
15
<body>
16
17
<div data-role="page" id="pageone">
18
  <div data-role="header">
19
    <h1>tap 事件</h1>
20
  </div>
21
22
  <div data-role="content">
23
    <p>敲击我,我会消失。</p>
24
    <p>敲击我,我会消失。</p>

 运行结果 
 北美留学生论坛