为什么数组在reverse()后再join()后有两种情况?
var x=['l','o','v','e'] x.reverse().join(); // 'e,v,o,l' x.reverse().join('') // 'love'
这是什么原因?
学习是最好的投资!
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.
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.