当前位置:网站首页>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
}
边栏推荐
- Uio-66-cooh loaded bendamostine | hydroxyapatite (HA) coated MIL-53 (FE) nanoparticles | baicalin loaded manganese based metal organic skeleton material
- 【吉林大学】考研初试复试资料分享
- 3D vision - 2 Introduction to pose estimation - openpose includes installation, compilation and use (single frame, real-time video)
- Redis: operation command of string type data
- Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
- Depth and breadth first traversal of tree (regardless of binary tree)
- [机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心
- Similarities and differences of sessionstorage, localstorage and cookies
- Installation impression notes
- JVM class loading
猜你喜欢

JVM runtime data area

Unable to stop it, domestic chips have made another breakthrough, and some links have reached 4nm

Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)

信创产业现状、分析与预测

PhpMyAdmin stage file contains analysis traceability

Screenshot of the operation steps of upload labs level 4-level 9

MySQL 数据处理值增删改

Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)

【吉林大学】考研初试复试资料分享

Summary of common error reporting problems and positioning methods of thrift
随机推荐
C language standard IO function sorting
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
Use and design of Muduo buffer class
The solution of Chinese font garbled code in keil5
Installation impression notes
Uniapp skills - dom display and hiding
Uniapp tips - set background music
Using registered classes to realize specific type matching function template
Qt学习18 登录对话框实例分析
Common network state detection and analysis tools
Leetcode-1175. Prime Arrangements
Dlopen() implements dynamic loading of third-party libraries
核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
【吉林大学】考研初试复试资料分享
Webpage connection database ~ simple implementation of addition, deletion, modification and query complete code
从零开始的基于百度大脑EasyData的多人协同数据标注
Go 1.16.4: purpose of go mod tidy
JVM runtime data area
Richview trvstyle liststyle list style (bullet number)
JVM class loading