我正在尝试将多个变量作为 AutoamtionAnywhere 中 js 脚本的输出返回。例如我有这样的js脚本:
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Monday', 'Tuesday'];
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'August', 'September', 'October' , 'November', 'December'];
var d = new Date();
var week_day = days[d.getDay()+2];
var day_number = d.getDate();
var month_name = months[d.getMonth()];
var month_number = d.getMonth();
if(month_number <= 9){
month_number.toString()
month_number = "0" + month_number
};
WScript.StdOut.WriteLine(week_day, day_number, month_name, month_number);