Archive: WEB前端
-
七 09, 2010
No CommentsNumber Format for Grid Panel
requirement: For different columns in grid panel, we need different precision. solution: renderer: Ext.util.Format.numberRenderer(”0.00000″), examples: (123456.789) * 0 – (123456) show only digits, no precision * 0.00 – (123456.78) show only digits, 2 precision * 0.0000 – (123456.7890) show only digits, 4 precision * 0,000 – (123,456) show comma and digits, no precision * 0,000.00 – (123,456.78) show comma and digits, 2 precision * 0,0.00...
-
五 24, 2010
No CommentsDiv屏幕居中
将一个Div层浮于浏览器的中央,且能够随着浏览器大小的调整而自动调整Div层的位置.象这样的需求已经很平凡了,下面是我找到的以为比较好用的一个实例,希望抛砖引玉能得到更多的解决方案. function divcenter(){ with(document.body){ document.all.mxh.style.posLeft=scrollLeft+(offsetWidth-document.all.mxh.style.posWidth)/2 document.all.mxh.style.posTop=scrollTop+(offsetHeight-document.all.mxh.style.posHeight)/2 } } 测试文字 本Blog文章除特别声明之外皆为原创文章,欢迎转载,转载请注明: 转载自JSSAY'S BLOG 本文链接地址:...
-
五 23, 2010
No CommentsGAE中时间的获取
GAE中获取当前的时间并不能直接通过Date对象获得,通过Date对象获得的是UTC时间,即世界统一时间或世界标准时间。要想获得某个时区的时间,就必须借助于Calendar对象。 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone(”GMT+8″)); 注:”GMT+8″是中国的时区编号。 本Blog文章除特别声明之外皆为原创文章,欢迎转载,转载请注明: 转载自JSSAY'S BLOG 本文链接地址:...
-
五 17, 2010
No Comments
-
五 16, 2010
No Comments博客程序收集中….
L-Blog: http://www.loveyuki.com 由Loveyuki自主开发的基于 ASP+Access...
-
五 12, 2010
No CommentsQ1技术点滴
...