当前位置:网站首页>JS input number and standard digit number are compared. The problem of adding 0 to 0
JS input number and standard digit number are compared. The problem of adding 0 to 0
2022-07-03 14:06:00 【Cupid510】

function name(a, b) {
if (a.indexOf(".") == -1 && b.indexOf(".") == -1) return a
let c = ""
a = a.indexOf(".") > -1 ? a : a.padEnd(a.length + 1, '.0')
c = a.replace(/(0+)$/g, "").padEnd(b.length, '0')
return c
}
边栏推荐
- JVM class loading
- [how to earn a million passive income]
- Simulated access
- Go: send the get request and parse the return JSON (go1.16.4)
- Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
- jvm-对象生命周期
- QT learning 20 standard dialog box in QT (middle)
- 叶酸修饰的金属-有机骨架(ZIF-8)载黄芩苷|金属有机骨架复合磁性材料([email protected])|制备路线
- QT learning 25 layout manager (4)
- How to promote the progress of project collaboration | community essay solicitation
猜你喜欢

Qt学习25 布局管理器(四)
[email protected] (FE) | glycyrrhetinic acid modified metal organ"/>Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ

Redis: operation command of string type data

Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market

Logback log sorting

The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log

Generate directories from web content

Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
![[bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update](/img/b8/31609303fd817c48b6fff7c43f31e5.png)
[bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update

Qt学习19 Qt 中的标准对话框(上)
随机推荐
Record 405 questions about bank callback post request
Webpage connection database ~ simple implementation of addition, deletion, modification and query complete code
Uniapp tips - scrolling components
MySQL 数据处理值增删改
Use vscode to view hex or UTF-8 codes
Uniapp tips - set background music
SQL Injection (AJAX/JSON/jQuery)
JS download files through URL links
Qt学习17 对话框及其类型
Qt学习23 布局管理器(二)
FPGA test method takes mentor tool as an example
Go language unit test 4: go language uses gomonkey to test functions or methods
Unable to stop it, domestic chips have made another breakthrough, and some links have reached 4nm
Go language unit test 3: go language uses gocovey library to do unit test
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
Comprehensive case of MySQL data addition, deletion, modification and query
JS new challenges
Qt学习18 登录对话框实例分析
PhpMyAdmin stage file contains analysis traceability
Depth and breadth first traversal of tree (regardless of binary tree)