扫码一下
查看教程更方便
javascript number tolocalestring() 方法使用环境的语言环境将数字对象转换为人类可读的字符串,该字符串表示数字。
语法如下 -
number.tolocalestring()
使用环境的语言环境返回表示数字的人可读字符串。
所有主流浏览器都支持 tolocalestring 方法。
javascript tolocalestring() method
输出结果:
177.1234