我正在使用 Flash CS3 创建基于 XML 的屏幕保护程序,一切正常。但是,在 XML 输出文件上,日期输出格式保持未格式化 ( YYYY-MM-DD T00:00:00+00:00
)。DD/MM/YYYY
理想情况下,将输出英国日期 ( ) 格式。
下面是驱动 XML 文件的 ActionScript 代码示例
// Load up variables with XML element data
var item_data:Array = new Array();
item_data[0] = xml_item.id;
item_data[1] = xml_item.Product_Name;
item_data[2] = xml_item.Product_Language;
item_data[3] = xml_item.dateCreated;
item_data[4] = xml_item.antDeadlineDate;
item_data[5] = xml_item.comments;
item_data[6] = xml_item.webPdf;
item_data[7] = xml_item.conCheck;
// Set output variable
output = "<b>Job ID</b>:" + item_data[0] + "\n";
output += "<b>Product Name</b>: " + item_data[1] + "\n";
output += "<b>Language</b>: " + item_data[2] + "\n";
output += "<b>Date Created</b>: " + item_data[3] + "\n";
output += "<b>Anticipated Deadline</b>: " + item_data[4] + "\n";
output += "<b>Comments</b>: " + item_data[5] + "\n";
output += "<b>PDFs created</b>: " + item_data[6] + "\n";
output += "<b>Controller Check</b>: " + item_data[7] + "\n\n\n\n";