0
의 ExtJS 5, 매장 동기화(), 브라우저가에 extjs 날짜 dateFormat는 작동하지 보인다
_dc 1414743789200
callback Ext.data.JsonP.callback2
records {"empid":8047,"empname":"Tom","action":1,"typeid":1,"num":1,"spec":170,"oper_id":5234,"actiontime":"2014-10-31T16:23:07","id":"jx.model.Item-1"}
type 1
actiontime 형식은 'T'내가 원하지 않는를 포함하는 같은 데이터를 보낼 때 내가 JsonpProxy을 사용하고 에서 actiontime
형식을 "20141031"(으)로 변경하고 싶습니다. 뭐든 내가 모델에서 actiontime의 dateFormt을 설정합니다. records
은 동일하게 유지됩니다.
스토어는 다음과 같습니다
Ext.define('MyApp.store.Item', {
extend: 'Ext.data.Store',
....
proxy: {
type: 'jsonp',
api: {
read: '',
create: 'http://192.168.202.6:8080/jx/PutAppJson.action',
update: '',
destroy: ''
},
extraParams:
{
type: '1'
},
url: 'defualt.action',
writer: {
type: 'json'
},
reader: {
type: 'json'
},
모델
{
type: 'date',
name: 'actiontime',
dateFormat: 'Y-m-d',
dateReadFormat: 'Y-m-d',
dateWriteFormat: 'Y-m-d'
}
그리드는 문제가 무엇
{
xtype: 'datecolumn',
width: 200,
dataIndex: 'actiontime',
text: 'WorkTime',
format: 'Y-m-d H:i:s'
}
이다?
여전히 '2014-10-31T16 : 23 : 07'. – Ron