children方法: find方法: 通过以上的解释,可以总结如下: 1:children及find方法都用是用来获得element的子elements的,两者都不会返回 text node,就像大多数的jQuery方法一样. 2:children方法获得的仅仅是元素一下级的子元素,即:immediate children. 3:find方法获得所有下级元素,即:descendants of these elements in the DOM tree 4:children方法的参数sel
用get方法查询: return this.getHibernateTemplate().get(Product.class, pid); 出现错误为:id to load is required for loading··· 很多人说是数据库有字段设置了not null,所以在更新数据的时候由于有些字段是null,所以报错.仔细查看了数据库,并没有not null的设置.其实原因出在get(Product.class,pid)这个方法上. 因为参数id在D