原文地址:https://segmentfault.com/q/1010000002546028
试了↑不太准确,可以深入研究一下
相关API地址:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare