Unit of Measure Conversion Library

前端 未结 8 2149
面向向阳花
面向向阳花 2020-12-07 15:15

What is the best/most elegant way to abstract out the conversion of units of measures in the client, based on a user-preferred unit of measure setting?

For example,

8条回答
  •  离开以前
    2020-12-07 15:50

    You might check out this port of Ruby Units to Javascript:

    https://github.com/gentooboontoo/js-quantities

提交回复
热议问题