序列化EXT GRID to Json

var data = new Array();
       var records = mRuKuChuLiPanel.RuKuStore.getRange();
       for (var i = 0; i < records.length; i++) {   
          data.push(records[i].data);
 }
      alert(Ext.util.JSON.encode(data));  
//www.dc9.cn

      

2 comments

  1. Emmett Tamaro 说道:

    I just want to tell you that I am just all new to blogging and site-building and honestly enjoyed this web-site. Probably I’m going to bookmark your site . You surely come with good article content. Cheers for sharing with us your web site.

  2. Simon Pfeiffer 说道:

    Aw, this was a very nice post. In thought I wish to put in writing like this moreover – taking time and precise effort to make an excellent article… but what can I say… I procrastinate alot and not at all seem to get one thing done.

发表评论

电子邮件地址不会被公开。