`

jquery插件ajaxify实现web 2.0

阅读更多
  1. Download 插件。
  2. 加载 jQuery library
  3. 添加代码到你的页面
  4.  

    <script type="text/javascript" src="ajaxify.js"></script>
    <script type="text/javascript">
      $(document).ready(function() { 
       $('.ajaxify').ajaxify();
    });
    </script>
  5. 对A的class加上"ajaxify"并且 target 定义到输出对象的ID. 例如:
  6. <a class="ajaxify" href="example.php" target="#container">
    Click here</a>

    更多例子请看这里

    作用是无刷新加载链接页面到指定DIV
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics