摘要: let a = 1, b = 2, c = 3; let arr = [a, b, c]; function test(p1, p2, p3) { console.log(`${p1} ~ ${p2} ~ ${p3} ~ `); } test(...arr); //1 ~ 2 ~ 3 ~ eval(`test(${arr})`); //1 ~ 2 ~ 3 ~ ... 阅读全文
posted @ 2019-07-01 15:28 little_ab 阅读(263) 评论(0) 推荐(0) 编辑