Home  >  Article  >  Web Front-end  >  一个小例子 关于oninput事件_html/css_WEB-ITnose

一个小例子 关于oninput事件_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:47:15984browse

上述代码的执行:

不是想要的效果,想得到333,怎么修改啊?

回复讨论(解决方案)

使用result.value=parseInt(num1.value,10)+parseInt(num2.value,10)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn