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

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

WBOY
Release: 2016-06-21 09:47:15
Original
1033 people have browsed it

上述代码的执行:

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

回复讨论(解决方案)

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template