首页 > 代码库 > jquerymobile带计数器的列表

jquerymobile带计数器的列表

<!DOCTYPE html>
<html>
    <head>
        <title>列表</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" /> 
        <script type="text/javascript" src=http://www.mamicode.com/"
http://code.jquery.com/jquery-1.5.min.js"></script>
        <link rel="stylesheet" href=http://www.mamicode.com/"
http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" />
        <script type="text/javascript" src=http://www.mamicode.com/"
http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
    </head>
<body>
  <div data-role="page">
      <header data-role="header">
          <h1>列表(带计数)</h1>
      </header>
      <div data-role="content">
         <ul data-role="listview" data-theme="a">
            <li>
               <a href=http://www.mamicode.com/"#">曹操
               <span class="ui-li-count">100000</span>
            </li>
            <li>
               <a href=http://www.mamicode.com/"#">刘备
               <span class="ui-li-count">3000</span>
            </li>
            <li>
               <a href=http://www.mamicode.com/"#">孙权
               <span class="ui-li-count">80000</span>
            </li>
         </ul>
      </div>
  </div>
</body>
</html>

效果:

技术分享

 


jquerymobile带计数器的列表