上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
  2009年10月9日
摘要: JavaScript 精确运算function accAdd(arg1,arg2){ var r1,r2,m; try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} m=Math.pow(10,Math.max... 阅读全文
posted @ 2009-10-09 13:22 Simon Han 阅读(298) 评论(0) 推荐(0) 编辑
  2009年9月14日
摘要: Form控件的NumberField(或TextField)不能获取键盘事件,可以试试以下方法。 var barcode = new Ext.form.NumberField({ allowDecimals: false, decimalPrecision: 0, allowNegative: false, selectOnFocus: true, allowBlank: true, applyT... 阅读全文
posted @ 2009-09-14 14:28 Simon Han 阅读(2420) 评论(1) 推荐(0) 编辑
  2009年9月10日
摘要: 两个事情:1. title 中可以使用HTML 动态设定字体等属性;2. "show" 事件中,Ext.getCmp("btnSale").focus('', 100); btnSale 为要设置焦点的元素的id 。CompleteWin = new Ext.Window({ id: 'MyCompleteWin', title: "<span style='font-size:16px'&... 阅读全文
posted @ 2009-09-10 14:05 Simon Han 阅读(4261) 评论(0) 推荐(0) 编辑
摘要: ExtJS NumberField小数自动截最后0问题,不显示最后0问题, 如:102.90, 显示为:102.9问题。使用这个覆盖:Ext.override(Ext.form.NumberField, { setValue : function(v){ v = typeof v == 'number' ? v : parseFloat(String(v).replace(this.decima... 阅读全文
posted @ 2009-09-10 11:18 Simon Han 阅读(4199) 评论(0) 推荐(0) 编辑
摘要: ExtJS 中有时需要动态传递除了Page信息外的其它参数问题。1. 依据不同参数load Store;  use :baseParams 和 Store 的 beforeload事件。2. 解决key事件;示例代码,注意红色部分:(此处使用了WCF后台处理,WCFJsonReader请参阅博客园小庄) var readerSupplier = new Ext.data.WCFJsonReader... 阅读全文
posted @ 2009-09-10 07:41 Simon Han 阅读(8622) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页