const arr1 = [1, 15, 3]; const arr2 = new Uint16Array([1, 15, 3]); console.log(arr1.sort()); console.log(arr2.sort());
[1, 15, 3]、报错
[1, 15, 3]、[1, 15, 3]
[1, 15, 3]、[1,3, 15]
[1, 3, 15]、[1, 3, 15]
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题