JavaScript 的细碎知识点
2017-04-05 本文已影响0人
大香蕉s
-
String 有个 trim 函数,用来删除 String 左右两边的空格
-
Number.toFixed(n) 获取 n 位小数的 num
-
$ npm install -g cnpm --registry=https://registry.npm.taobao.org # 安装 cnpm
String 有个 trim 函数,用来删除 String 左右两边的空格
Number.toFixed(n) 获取 n 位小数的 num
$ npm install -g cnpm --registry=https://registry.npm.taobao.org # 安装 cnpm