阅读背景:

为什么点。排序(函数(a,b){返回a - b });返回-1 0还是1?

来源:互联网 

My difficulty here could be my mathematical illiteracy, but I was trying to sort some numbers in a JavaScript array and this is the solution I found online. It does indeed work, but my question is why?! I would really like to understand this piece of code properly.My difficulty here could be my mathematical ill




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: