2011-10-11 58 views

回答

0

我找到了解决方案。有点棘手和容易。

//-First get dataSource which is used for binding. 
// then change URl property. 
var ds = dashcode.getDataSource('dataSource'); 
ds.url = 'http://192.168.10.14/mysite/sample2.xml'; 

//-Reload that list which is binded to dataSource. 
var list = document.getElementById('resultList'); 
list.object.reloadData(); 

对其做.. :)