2
回答
求救 extjs jsonstore + spring mvc 返回JSON 回调success = false的问题
终于搞明白,存储TCO原来是这样算的>>>   
{"total":3673,"posts":[{"postUrn":"3492276393483169_195861","postId":"3492276393483169","createdAt":1348107037000,"userUrn":null,"userId":"1815490007","userScreenName":null,"entitySectionUrn":195861,"serviceTypeUrn":4,"postTitle":"//@长春汇宝汽车:#宝马爱心基金#","postContentText":null,"postGroupId":null,"rootPostUrn":null,"sourceClientUrn":10699794,"postType":2,"cntRead":null,"cntReplied":0,"cntForwarded":0,"cntFavorited":0,"accountType":null,"userCntFollowers":null,"userCntFollowing":null,"userCntFriends":null,"userCntPosts":null,"userLocCountry":null,"userLocProvince":null,"userLocCity":null,"userGender":"U","position":null,"latitude":0.0,"longtitude":0.0,"tTopics":null,"ctopicUrns":null,"itopicUrns":null,"postTags":null,"userPopular":null,"userInflu":null,"comboKey":null,"titleAndContentText":"//@长春汇宝汽车:#宝马爱心基金# "}],"qtime":24,"success":true}
上面是JSON后台返回的json
这是jsonstore
 var searchStore = new Ext.data.JsonStore({
        autoDestroy: true,
        url:'search.do',
        root: 'posts',
        idProperty: 'postUrn',
        autoLoad:false
    });
点击按钮后执行:
searchStore.load({
                		params:{start:0, limit:1},
                		callback:function(rs,options,success){
                		    alert(success); //这里始终是false
                		}
                    });
RESPONSE HEADER 中:
 
 
Content-Type:
application/json;charset=UTF-8
举报
顶部