`
javaliwei
  • 浏览: 13720 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
http://www.juhuiwan.cn/
相信大家都遇到过类似的问题,for循环绑定完事件最后执行的时候都是最后一个事件相同,比如这段代码 <body> <ul id="list"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul> <script> var list_obj = document.getElementsByTagName('li'); fo ...
When the web page is too long so that scrollbar shows up, $(document).width() will show different result between Chrome/FF and IE. Chrome/FF will get the width without scrollbar's width, but IE will take  the scrollbar as one part of document. If we want to calculate the absolute position of any ele ...
Just a small style problem. <a>sample text</a> If its style like this: a:hover{text-decoration: underline;} ,the underline won't show up in IE6. Because this hyperlink doesn't contain href attribute within it. The solution is adding href attribute in it, just like this: <a ...
Integer生成的新对象,如果值在-128到127之间,是直接在缓存池中取的 也就是说不是new的 所以 Integer a=100; Integer b=100; a==b 是true 而 Integer a=200; Integer b=200; a==b 是 false
刚刚把数据库换成mysql时出现的一个hibernate查询问题,调试发现查询结果list里面都是Character类型,只能显示出数据库第一个字符,so更改方言解决之: 自己编写数据库方言类,继承MySQL5Dialect类,构造方法如下: super(); registerHibernateType( Types.CHAR, Hibernate.STRING.getName() ); registerHibernateType protected void registerHibernateType(int code, ...

dwr addRows方法

    博客分类:
  • ajax
这种例子网上已经有好多了,主要是多了options参数的用法,自己发下备份,也希望对大家有所帮助。 addRows 4个参数分别为表格(table,tbody,thead,tfoot,推荐用后面三个,可以准确定位)的id,数据集合(array,list或map),一行数据的显示方法和options,具体用法如下: dwr.util.addRows("searchResult",list,cellFuncs,{ rowCreator:function(options){ var row = document.createElement(&quo ...
Global site tag (gtag.js) - Google Analytics