增加分配按钮的功能

This commit is contained in:
季圣华
2021-04-28 23:24:37 +08:00
parent 909af32e60
commit 04e3fc85b7
5 changed files with 121 additions and 51 deletions

View File

@@ -530,4 +530,18 @@ export function getNowFormatDateTime() {
+ " " + strHours + seperator2 + strMinutes
+ seperator2 + strSeconds;
return currentdate;
}
/**
* JS中根据指定值删除数组中的元素
* @param arrylist
* @param val
*/
export function removeByVal(arrylist, val) {
for(var i = 0; i < arrylist .length; i++) {
if(arrylist [i] == val) {
arrylist .splice(i, 1);
break;
}
}
}