文章标签 ‘jQuery’

JsTree Demo Version: jstree pre 1.0 stable Old versions: http://code.google.com/p/jstree/downloads/list Add a demo for jstree in demo/index.html Integrate the usage of metadata, click the node event ,attrs,toggle nodes and ajax json in jstree Changed apple theme and classic theme background fixed for in ie6. 1. ?View Code HTML<script type="text/javascript" src="./_lib/jquery.js"></script> <script type="text/javascript" src="./jquery.jstree.js"></script> 2. ?View [...]

2011年8月10日13:06 | 没有评论
分类: IT技术
标签: ,

这里介绍一个Jquery 的pager插件,相信会有很多人需要他,具体参考http://www.j-dee.com/2008/12/22/jquery-pager-plugin/ 你可以从这里查询他是如何工作的,以及一个简单的demo http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html 到这里去下载它http://github.com/jonpauldavies/jquery-pager-plugin/tree/master 我的使用经验: 使用非常简单,你之需要为它定义记录的总页数(或你想显示的页数),当前页码,以及一个当你点击页码时触发的回调函数。 ?View Code JAVASCRIPTSample:   /** * 调用$.ajax请求获取Comment记录; * 请求参数是(当前页,每页记录数,查询条件…); * 返回(Comment记录,当前页,总页数) **/ function getComment(){ … }   /** *通过JS重绘页面 *重绘pager DIV * **/ function showComment(){ …   $("#pager").pager({ pagenumber: currentPage, pagecount: pageCount, buttonClickCallback:   PageClick });   PageClick = function(pageclickednumber) { getComment(pageclickednumber); } } PageClick 就是我们定义的回调函数,当点击页码的时候请求数据. 另外他还可以自定义样式,你可以像下面这样去自定义它的显示: ?View [...]

2010年1月19日12:11 | 1 条评论
分类: IT技术
标签:

在网上寻找了很多天,今天终于解决了jQuery在eclipse的代码提示功能。 首先下载安装spket,安装方法有很多,可G去,它是需要license code 的,也可G去 然后下载jQuery的最新版本jquery-1.2.6.js; 最后让spket支持jQuery。 参考: spket破解 jQuery下载 更详细的配置方法

2009年6月17日11:09 | 没有评论
分类: IT技术
标签: