function myCallback(myData){
//data is here myData
}
$(document).ready(function(){
var data;
rbf_selectQuery("SELECT name, base, per, one_time_setup, annual FROM service_fees", 10000, myCallback);
//I want to get the data to here
console.log(data);
});
我使用来自支持jQuery和Javascript的专有软件平台的客户端调用来查询数据。该函数返回回调中的数据。如何将数据恢复到主范围?全局?从函数返回值?