0
我有下面的JavaScript微軟JScript運行時錯誤:「未定義」爲空或不是對象
(function() {
try {
var stdin = WScript.StdIn.ReadAll();
var json = eval('(' + stdin + ')');
var log = new Log(json.environment.actionLogFile);
log.commenced();
var inputFilePath=json.action.inputs[0].value;
log.info("inputFilePath : "+inputFilePath);
................
log.completed();
} catch (e) {
log.info("error");
}
})();
這給我的錯誤,Microsoft JScript runtime error: 'undefined' is null or not an object
在catch
。任何建議爲什麼會發生這種情況
不知道你在輸入什麼和'log'是什麼?不。我的意思是,猜測「log」是「未定義的」。 –
''未定義'是空'?多麼奇怪的錯誤信息! – undefined
@Vohuman:*「**或**不是對象」* –