我正在尝试警告我的copyfile回调函数中的节点变量,但我收到错误。缺少什么?
function myFunc(){
var node = "my node";
CopyFile("test","test1",function (){
alert(node); //error here VM29198:1 Uncaught ReferenceError: node is not defined(…)
}, function (sender, args) {
});
}
function CopyFile(param1, param2, callbackSuccess, callbackFail){
callAnotherfunction(function(){
callbackSuccess();
},function(){
callbackFail();
});
}