2021-02-23/2 Comments/628 Reading/Checking whether to include
reminder:
This article was last updated on February 23, 2021, and has not been updated for more than 1311 days. If the content or picture is invalid, please leave a message for feedback.
Length represents the number of decimal places when entering decimal places
const length = 2const reg = new RegExp(`^\\d+(\\.\\d{1,${length}})?$`)