请告诉我当我使用 if 语句时如何退出 javascript(我在硬盘上运行它)。以下代码不起作用:
if (fso.FileExists("C:\\EXT\\file.txt") ) //check if there file in the folder
{
log.WriteLine(file_exist_time + " - file exists C:\\EXT\\ ");
}
else
{
log.WriteLine("There is no file in C:\\EXT\\");
function exit ()
{
throw ('Script Exit');
}
}
非常感谢!