extjs 时间可选择时分
摘要:new Ext.form.DateTimeField({ id: 'SdDateField', width: 130, format: 'Y-m-d H:i', editable: false, value: SD, listeners: { 'select': function (dp, newV
阅读全文
posted @
2016-10-21 16:48
李九妹
阅读(270)
推荐(0)
ext日期加减任意天数
摘要:1、Ext.util.Format.date(new Date().add(Date.DAY, 5), 'Y-m-d'), 'Y-m-d')2、Ext.util.Format.date(new Date(parseInt(value.substring(6, value.length - 2)))....
阅读全文
posted @
2014-04-14 19:02
李九妹
阅读(815)
推荐(0)
对Extjs中时间的多种处理
摘要:1、类型为datetime的json数据处理 (字段类型为datetime)new Date(parseInt(yourTime.substring(6, yourTime.length - 2))).format('Y-m-d');eg:{ header: "结算日期", dataIndex: 'PayDate', align: 'left', width: 85, sortable: true, renderer: function (val) { if (val != null) { return ''
阅读全文
posted @
2014-03-28 15:30
李九妹
阅读(200)
推荐(0)
对Extjs中store的多种操作
摘要:Store.getCount()返回的是store中的所有数据记录,然后使用for循环遍历整个store,从而得到每条记录。除了使用getCount()的方法外,还可以使用each()函数,如下面的代码所示。1.store.each(function(record){ 2.alert(record.get('name')); 3.});Each()可以接受一个函数作为参数,遍历内部record,并将每个record作为参数传递给function()处理。如果希望停止遍历,可以让function()返回false。也可以使用getRange()函数连续获得多个record,只需要
阅读全文
posted @
2014-03-26 12:51
李九妹
阅读(214)
推荐(0)