Skip to content

Instantly share code, notes, and snippets.

View lvbeck's full-sized avatar

Jin Lu lvbeck

  • ZUB-Systems
  • Kassel, Germany
View GitHub Profile
@lvbeck
lvbeck / gist:f5ecf7164b57f50dbed86cffb7898a6f
Last active June 13, 2019 15:18
get operations of materials
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) {