当前位置: 首页 > 工具软件 > Ajaxify > 使用案例 >

jquery插件ajaxify实现web 2.0

熊锐进
2023-12-01
  1. Download 插件。
  2. 加载 jQuery library
  3. 添加代码到你的页面

 

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

更多例子请看这里

作用是无刷新加载链接页面到指定DIV
 类似资料: