2012-11-01 77 views

回答

0

不太確定,如果我理解你的問題。但數據源是一個很好的方式來抽象您的互動,例如twitter:

var dataSource = new kendo.data.DataSource({ 
transport: { 
    read: { 
     // the remote service url 
     url: "http://search.twitter.com/search.json", 

     // JSONP is required for cross-domain AJAX 
     dataType: "jsonp", 

     // additional parameters sent to the remote service 
     data: { 
      q: "html5" 
     } 
    } 
}, 
// describe the result format 
schema: { 
    // the data which the data source will be bound to is in the "results" field 
    data: "results" 
} 
});