|
w页面里直接用jquery请求java后台,没有用baas(到现在也不明白baas干嘛用的,是必须的吗?)
var json;
var data = event.source;
$.ajax({
type : "POST",
url : "http://xxx.com/app/getProductList.do",
dataType : "json",
async: false,
data : {},
success : function(data) {
var productList = data.productList;
json={"@type" : "table","recmdData" : {"idColumnName" : "productId","idColumnType" : "Integer", },"rows" :productList };
}
});
data.loadData(json,false);
新手请帮助啊!~~~ |
|