摘要:<ul> <li>list item 1</li> <li>list item 2</li> <li class="third-item">list item 3</li> <li>list item 4</li> <li>list item 5</li></ul><script>$('li.third-item').siblings().css('background-color', &
阅读全文
摘要:function fuFunctiondan(){ var frm=$("#z_div"); var iframeHeight=0; if (navigator.userAgent.indexOf("Firefox")>0) { // Mozilla, Safari, ... iframeHeight=window.frames[0].document.body.scrollHeight; alert(iframeHeight); iframeHei...
阅读全文
摘要:document.body 或者document.documentElement1.clientHeight 指当前窗口的高度 clientWidth 当前窗口的宽度 2.谷歌中document.documentElement.offsetHeight 为0; document.body.offsetHeight js错误 IE 中document.documentElement.offsetHeight 比 document.documentElement.clientHeight 多4px offsetHeight IE、Opera 认为 offsetHeight =...
阅读全文
摘要:<result name='pe' type='json'> <param name='root'>tcompany</param> <param name=contentType>text/html</param></result> 当tcompany 为protected 修饰时 ,无法json 序列化 , 不序列化 命令 @JSOn(serializ=false) 但通常都是想json化 ,所以如是从接口中获得对象 最好 自己写bean 赋值下,将自己的bean JSO
阅读全文