Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

#14 [BUG] 输入框输入0或小数点 #16

Open
yfzm opened this issue Nov 20, 2017 · 0 comments
Open

#14 [BUG] 输入框输入0或小数点 #16

yfzm opened this issue Nov 20, 2017 · 0 comments

Comments

@yfzm
Copy link
Owner

yfzm commented Nov 20, 2017

  • 若输入框的值为0,应立即将其更改为1
  • 每当检测到输入小数点,应立即将其删除。程序中有此项代码,但不起作用
    onkeyup="this.value=this.value.replace(/\D/g,'')"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant