js工具类
请查看 MIT license.
** 根据具体值,从数组中移除元素
import {ArrayUtil} from "jsutills/index"
//字符串
testArray(){
let arr=["a","b","c"];
ArrayUtil.remove(arr,"b");
console.log(arr.join(","));//a,c
}
//对象
testArray(){
let objArr=[{"id":"1","name":"赵云"},{"id":"2","name":"诸葛亮"}];
ArrayUtil.remove(objArr,{"id":"2"},"id");
console.log(JSON.stringify(objArr));//[{"id":"1","name":"赵云"}]
}
** md5
import {JsUtilApi} from "jsutills/index"
JsUtilApi.md5("admin123456")