标签:不同 splice roi var 随机数 mat round fallback 抽取
var arr = ["王","赵","孙","李","张","周","吴"]; for (var i = 3; i > 0 ; i--) { var a = Math.round(Math.random()*arr.length-1); var b = arr.splice(a,1); console.log(b); }
标签:不同 splice roi var 随机数 mat round fallback 抽取
原文地址:https://www.cnblogs.com/niuyaomin/p/12115687.html