……楼里说的都是什么鬼 这是字符串之间的比较,逐字字典序比较,另外无论是 "" 还是文档都可以看出这返回的是字符串,不要动不动就黑 JS C 语言也这么比……
numObj.toFixed([digits])
Returns: A string representation of numObj that does not use exponential notation and has exactly digits digits after the decimal place. The number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length. If numObj is greater than 1e+21, this method simply calls Number.prototype.toString() and returns a string in exponential notation.