|
楼主 |
发表于 2016-9-6 13:45:07
|
显示全部楼层
我这个方法单独创立的
Daybutton1Click = function(d) {
var day = document.getElementById("idCalendarYear").innerHTML + '-' + document.getElementById("idCalendarMonth").innerHTML + '-' + d;
var serviceData;
justep.Baas.sendRequest({
"url" : "/gp/gp2",
"action" : "GetAppService",
"async" : false,
"params" : {
"day" : day
},
"success" : function(data) {
serviceData = data;
}
});
var heiniaoData = document.getElementById("heiniaodata");//this.comp("heiniaodata");
heiniaoData.setValue("id", "1");
heiniaoData.setValue("dangrishouyi", serviceData.dangrishouyi);
var row = heiniaoData.getCurrentRow();
this.comp('windowReceiver1').windowEnsure(row);
}
这里this确实好像不能用,该如何解决这个问题呢? |
|