我有一种项目管理系统,我使用sweetalert弹出窗口作为每个项目的设置菜单,并且我想在更改设置时进行举杯,但这会导致菜单关闭。有没有一种方法可以在不使用仅用于烤面包的另一个库的情况下使这项工作有效?
这是我要为sweetalert菜单运行的代码
mynode = client.uaclient.translate_browsepaths_to_nodeids(ua.QualifiedName("StaticData", 3))
const newCandidates = [
{ name: "Kerrie", skills: ["JavaScript", "Docker", "Ruby"] },
{ name: "Mario", skills: ["Python", "AWS"] }
];
console.log("DataType of newCandidates: ", typeof newCandidates); // prints object type
// accessing skills array in newCandidates
for(var i = 0; i < newCandidates.length; i++) {
let person = newCandidates[i];
console.log("personName: ", person["name"]);
// since skills is array, iterate through it.
for(var j = 0; j < person["skills"].length; j++) {
let currentSkill = person["skills"][j];
// do something with currentSkill
console.log("Skill-" + j + " : " + currentSkill);
}
}