The date and time formats of JSON returned by the background are often similar to "\/date (1309200300000) \/", and the results cannot be normally displayed in timefield, if you want to display it correctly, the general method is to change the background code to convert the date and time format to string, and the solution is to rewrite the setvalue of timefield. The specific code is as follows:
Ext. override (ext. form. timefield, {getvalue: function () {return this. value;}, setvalue: function (v) {This. value = V; this. setrawvalue (this. formatvalue (v); return this;}, formatvalue: function (v) {If (v. length> 8) {// a maximum of 8 timefields and more than 8 fields must be var jsondate = eval ("new" + v. substr (1, V. length-2 )). tolocaletimestring (); jsondate = jsondate. length = 8? Jsondate. substr (0, 5): '0' + jsondate. substr (0, 4); // tolocaletimestring is relatively retarded. If the returned hour is less than 10 hours, only one return jsondate;} return v ;}});