为什么数组在reverse()后再join()后有两种情况?
var x=['l','o','v','e']
x.reverse().join(); // 'e,v,o,l'
x.reverse().join('') // 'love'
这是什么原因?
数据分析师2017-10-01 01:20:13
javascript - What is the problem with array reverse() and then join()? - PHP Chinese website Q&A -javascript - What is the problem with array reverse() and then join()? - PHP Chinese website Q&A
Take a look around Oh, study it.