面向Java开发人员的Ajax技术[4]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

...

<tr>

  <!-- Item details -->

  <td>Hat</td> <td>Stylish bowler hat</td> <td>$19.99</td>

  <td>

    <!-- Click button to add item to cart via Ajax request -->

    <button onclick="addToCart('hat001')">Add to Cart</button>

  </td>

</tr>

...

<!-- Representation of shopping cart, updated asynchronously -->

<ul id="cart-contents">

  <!-- List-items will be added here for each item in the cart -->

</ul>

<!-- Total cost of items in cart displayed inside span element -->

Total cost: <span id="total">$0.00</span>

 

 

Ajax处理过程

本文关键:面向Java开发人员的Ajax技术
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top