两次调用
FriendService.addFriends2RowId(bean);
FriendService.getMyFriendsByRowId(bean, showFriends);
如何实现,FriendService.addFriends2RowId(bean); 方法把值插入后,再执行FriendService.getMyFriendsByRowId(bean, showFriends);查询方法
是不是同步执行?
function addFriends2RowId(bean){
[color=red]DWREngine.setAsync(false);[/color]
FriendService.addFriends2RowId(bean);
[color=red]DWREngine.setAsync(true);[/color]
}
addFriends2RowId(bena); //之后
//执行
FriendService.getMyFriendsByRowId(bean, showFriends);查询方法
问题,你说得不太清楚吧
把两个方法放着一起,插入完毕以后直接返回就可以了啊