多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` function writeReport(path, reportText) { var reportFile = new File(path ); //path + "/font_report.txt" if(reportFile.exists){ //alert('file already exists'); reportFile.open("w"); //reportFile.open("a"); //a是append模式 reportFile.write(reportText); reportFile.close(); } else{ var RCF_file = new File(reportFile); RCF_file.open("w"); RCF_file.write(reportText); RCF_file.close(); } //alert('Report Complete'); } ```