JavaScript 实现元素全排列

黄琦雲 at 
排列 (Permutation / Arrangement)概念 n 个不同元素中任意选取 m (m [ [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1] ] ……