javascript删除某个指定下标数组元素

var array=['1','2','a','b','c','e','d'];
array.splice(nums,1);
//nums为第几个下标(0开始)
//譬如nums为3
array.splice(3,1);
console.log(array)
//输出['1','2','a','c','e','d']
来都来了,留个言吧🙂