没有合适的资源?快使用搜索试试~ 我知道了~
numeric-quantity:将整数加小数转换为十进制值
共15个文件
json:3个
yml:2个
js:2个
需积分: 9 0 下载量 126 浏览量
2021-05-21
21:49:37
上传
评论
收藏 133KB ZIP 举报
温馨提示
数值量 将字符串转换为数字。 该字符串可以包含混合数字或粗俗的分数。 对于逆运算(将数字转换为英制尺寸),请检出 。 有关解析配方成分的更完整解决方案,请尝试 。 安装 npm # npm npm i numeric-quantity # yarn yarn add numeric-quantity 浏览器 在浏览器中,可用作全局函数numericQuantity 。 < script src =" https://unpkg.com/numeric-quantity " > </ script > < script > console . log ( numericQuantity ( '10 1/2' ) ) ; // 10.5 </ script > 用法 import numericQuantity from 'numeric-quantity' ; conso
资源推荐
资源详情
资源评论
收起资源包目录
numeric-quantity-master.zip (15个子文件)
numeric-quantity-master
package.json 1KB
.github
workflows
main.yml 956B
_config.yml 29B
tests
browsertest.html 709B
browsertest.js 3KB
LICENSE 1KB
src
index.test.ts 3KB
index.ts 4KB
tsconfig.json 1KB
.gitignore 43B
CHANGELOG.md 605B
README.md 2KB
yarn.lock 321KB
tsdx.config.js 157B
.vscode
settings.json 33B
共 15 条
- 1
资源评论
你就应该
- 粉丝: 43
- 资源: 4600
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功