Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged input里只能输入到小数点后5位

0 votes
409 views
1 answer
    oninput 事件里 //先把非数字的都替换掉,除了数字和. scope.showBuyPrice = scope.showBuyPrice.replace(/[^d.]/g,""); //必须保证第一个为数字而不是. scope. ... ).replace(/./g,"").replace("$#$","."); 之后怎么写能满足需求呢...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...