This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getOperationsByMaterial(material) { | |
var operations_types = ["Prepare", "CutOpen", "CutOff", "Test", "CutOff", "Observe", "Summary"]; // 数组长度已知 | |
var operations = []; // 可变长度数组 | |
// 读入该条文本数据并得到操作集 | |
operations = ["Prepare", "CutOpen", "CutOff", "Test", "CutOff", "Observe", "CutOff", "Test", "Summary"]; | |
return operations; | |
} | |
function formatOperationsArray(operations) { |