1.2.14 • Published 5 years ago

pile-to-str v1.2.14

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

目的

在交通项目中会经常使用到桩号,这些桩号通常是Number类型(例:12.23),但是展示时要求格式为字符串(例:K12+230)。因此,需要将数字转换为标准格式。

如何使用

1. 下载

$ npm install pile-to-str --save

2. 使用

import pileToStr from 'pile-to-str'

const pile = 12.23

// 传入参数必须为Number类型,建议使用该方法转换时,先判断类型
if (typeof(pile) === 'number') {
    pileToStr(pile) // => K12+230
}
1.2.14

5 years ago

1.2.13

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago