摘要: 返回值:Element get([index])概述取得其中一个匹配的元素。 num表示取得第几个匹配的元素。这能够让你选择一个实际的DOM 元素并且对他直接操作,而不是通过 jQuery 函数。$(this).get(0)与$(this)[0]等价。参数[index]Number取得第 index 个位置上的元素get()取得所有匹配的 DOM 元素集合。示例描述:HTML 代码:<img src="test1.jpg"/> <img src="test2.jpg"/>jQuery 代码:$("img").g 阅读全文
posted @ 2012-11-19 21:40 Onakaumi 阅读(316) 评论(0) 推荐(0) 编辑
摘要: HTML 代码:<p><span>Hello</span>, how are you?</p>jQuery 代码:$("p").find("span")结果:[ <span>Hello</span> ]站长统计 阅读全文
posted @ 2012-11-19 21:38 Onakaumi 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 最近几天一直在看 js. 1 var SingletonTester = (function () { 2 3 //参数:传递给单例的一个参数集合 4 function Singleton(args) { 5 //设置args变量为接收的参数或者为空(如果没有提供的话) 7 var args = args || {}; 8 //设置name参数 9 this.name = 'SingletonTester';10 //设置pointX的值11 this.pointX = a... 阅读全文
posted @ 2012-11-18 16:30 Onakaumi 阅读(129) 评论(0) 推荐(0) 编辑
摘要: java.nio.channels.SelectorA multiplexor of SelectableChannelobjects.A selector may be created by invoking the open method of this class, which will use the system's default selector provider to create a new selector. A selector may also be created by invoking the openSelector method of a custom 阅读全文
posted @ 2012-11-17 13:41 Onakaumi 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1 package test.dao; 2 3 import java.util.List; 4 5 /** 6 * 用于分页的工具类 7 * @author 莫取网名 8 */ 9 public class Pager<T> { 10 11 private List<T> list; //对象记录结果集 12 private int tota... 阅读全文
posted @ 2012-11-11 23:35 Onakaumi 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 实例GenericDAO.classpublic interface GenericDAO<T, ID extends Serializable> { T findById(ID id, boolean lock); List<T> findAll(); List<T> findByExample(T exampleInstance); T makePersistent(T entity); voidmakeTransient(T entity);}GenericHbernateDAO.classpublic abstract class GenericHi 阅读全文
posted @ 2012-11-11 21:31 Onakaumi 阅读(259) 评论(0) 推荐(0) 编辑
摘要: by:http://www.cnblogs.com/dumuqiao/archive/2011/09/09/2172513.html什么是 .live().live方法类似于.bind(),除此之外,它允许你将事件绑定到DOM元素上,可以将事件绑定到DOM中还不存在的元素上,看看下面的例子:比方说当用户在点击链接时及想提示他们正在离开站点。?123456$(document).ready( function() {$('a').click( function() {alert("You are now leaving this site");returntr 阅读全文
posted @ 2012-11-11 19:03 Onakaumi 阅读(151) 评论(0) 推荐(0) 编辑
摘要: svn: Commit failed (details follow):svn: Aborting commit: G:\***\service\impl\ProjectServiceImpl.java' remains in conflictEclipse中的解决办法 1.右击工程目录–>team–>Show Tree Conflict 2.在Eclpise中会出现一个Tab视图显示Tree Conflict的内容 3.一个一个选择列表中的冲突右击将其标志为已解决 4.然后回到项目再提交更改就可以了。某人的总结 拿来共勉: 有时候自己认为出现了什么比较奇怪的现象.比较郁闷 阅读全文
posted @ 2012-11-11 18:37 Onakaumi 阅读(2699) 评论(0) 推荐(0) 编辑
摘要: <!-- modal begin --> <div class="well"> <-- Button to trigger modal --> <a href="#myModal" role="button" class="btn btn-inverse" data-toggle="modal">Launch demo modal</a> <-- Modal --> </div> ... 阅读全文
posted @ 2012-11-04 15:46 Onakaumi 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Create DataGridTo load data from remote server, you should set 'url' peoperty, where server will return JSON format data. see datagrid document for more about the data format. 1 <table id="tt" class="easyui-datagrid" style="width:600px;height:250px" 2 url=&qu 阅读全文
posted @ 2012-11-04 14:34 Onakaumi 阅读(172) 评论(0) 推荐(0) 编辑