摘要: javascript中数组是没有indexOf方法,extjs中给数据添加了该方法 1 Ext.applyIf(Array.prototype, { 2 3 /** 4 * Checks whether or not the specified object exists in the array. 5 * @param {Object} o The object to check for 6 * @param {Number} from (Optional) The index at which to begin the search 7 *... 阅读全文
posted @ 2012-06-29 16:19 Kenn's note 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 1 Ext.each(hosts,function(host){2 if(host.isAgentOk){3 return false;//不能使用return4 }else{5 failAgentLen++;6 }7 }); 阅读全文
posted @ 2012-05-10 10:40 Kenn's note 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 创建GridPanel 1 _createGridPanel : function(){ 2 var sm = new Ext.grid.CheckboxSelectionModel(); 3 sm.handleMouseDown = Ext.emptyFn; 4 var Host = Ext.data.Record.create([ 5 {name: 'isAgentOk', mapping: 'isAgentOk',type :'boolean'}, 6 {n... 阅读全文
posted @ 2012-05-07 15:34 Kenn's note 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 这实际上是早期jquery版本的一个BUG,修改jqModal.js文件ie6=$.browser.msie&&($.browser.version == "6.0")&&!window.XMLHttpRequest,加上红色字体即可解决We recently discovered an issue with jQuery.browser.version detection, it reports wrong Internet Explorer versions on some corrupted IE userAgent strings. 阅读全文
posted @ 2012-02-25 18:57 Kenn's note 阅读(454) 评论(0) 推荐(0) 编辑
摘要: jxls-0.9.9只支持excel2003,需要jar包jxls-core-0.9.9.jarjxls-reader-0.9.9.jarpoi-3.7-20101029.jarjxls-1.0支持excel2003及excel2007版本,所需要jar包jxls-core-1.0.jarjxls-reader-1.0.jarpoi-3.7-20101029.jar以及依赖的jar包poi-ooxml-3.7.jarpoi-ooxml-schemas-3.7.jardom4j-1.6.1.jarxmlbeans-2.3.0.jarcommons-jexl-2.1.1.jar 阅读全文
posted @ 2012-01-06 20:41 Kenn's note 阅读(742) 评论(0) 推荐(1) 编辑
摘要: log4j.rootLogger=DEBUG,CONSOLE,A1,imlog4j.addivity.org.apache=true# 应用于控制台log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppenderlog4j.appender.Threshold=DEBUGlog4j.appender.CONSOLE.Target=System.outlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayoutlog4j.appender.CONSOLE.layout.ConversionP 阅读全文
posted @ 2011-08-30 10:15 Kenn's note 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 闭包延时执行:function test(){var i = 0; (function(){ if(i<5){ alert(i); window.setTimeout(arguments.callee,2000); i++; } })();}test(); 阅读全文
posted @ 2011-05-31 16:22 Kenn's note 阅读(415) 评论(0) 推荐(1) 编辑
摘要: 如下jquery代码,用来合并行级单元格,在IE8/FF4下都正常合并了$curTd.attr("rowspan",$tds.length);惟有IE6下不能合并。如图:第一列全部挤在最左边。将"rowspan"改成"rowSpan"即可解决,同理,“colspan”也需要改成“colSpan”$curTd.attr("rowSpan",$tds.length);正常效果就这么一个小问题,调试了半天。操蛋的IE6…… 阅读全文
posted @ 2011-05-31 08:58 Kenn's note 阅读(479) 评论(0) 推荐(1) 编辑
摘要: 用户体验(User Experience,简称UE)是用户在使用产品过程中建立起来的一种纯主观感受。在基于Web的产品设计中,UE是一个相对较新的概念。Donald Norman博士提出了“用户体验”一词,他是一个认知科学的研究人员,首次提出了在互联网领域以用户为中心设计的重要性(用户的需求决定产品如何设计)。 Donald Norman 用户体验很重要,最大的理由是:它对你的用户很重要。◆ 最起码是要让产品有用,这个有用是指用户的需求。(尊重用户价值+满足用户需求)◆ 其次是能用,所有的流程都走得通,没有致命的BUG。(尊重用户价值+满足用户需求)◆ 然后是易用,操作起来很便利,这非常关键。 阅读全文
posted @ 2011-05-13 09:49 Kenn's note 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-05-12 16:30 Kenn's note 阅读(204) 评论(0) 推荐(0) 编辑