//其他人写的一个dwr将参数传入回调函数,不知道是针对什么版本的,感觉有些麻烦
function dlt(msg){
asppoiService.deleteone(msg,{
callback:function(data){
load(data,msg);
}
});
}
function load(data,msg){
if(data){
document.getElementById(msg).removeNode();
}
}
//以下是我的写法,dwr 2.0.1下完成,clNo就是你要传递的参数
function bb(clNo){
studentList.getStudentDwr(clNo,callback1 );
}
function callback1(list){
for(var i=0;i<list.length;i++){
nod=new Ext.tree.TreeNode(Ext.decode(list[i]));
arr[i]=nod;
}
}
function dlt(msg){
asppoiService.deleteone(msg,{
callback:function(data){
load(data,msg);
}
});
}
function load(data,msg){
if(data){
document.getElementById(msg).removeNode();
}
}
//以下是我的写法,dwr 2.0.1下完成,clNo就是你要传递的参数
function bb(clNo){
studentList.getStudentDwr(clNo,callback1 );
}
function callback1(list){
for(var i=0;i<list.length;i++){
nod=new Ext.tree.TreeNode(Ext.decode(list[i]));
arr[i]=nod;
}
}