paul-blog

html5表单实现简单计算器

<!DOCTYPE html>
<html>
<head>
<title>this is a html page</title>
</head>
<body>
<form oninput="res.value = n1.valueAsNumber * n2.valueAsNumber">
<input type="number" id="n1"> x
<input type="number" id="n2"> =
<output id="res" name="res" />
</form>
</body>
</html>



页面截图

分类:

技术点:

相关文章:

  • 2021-12-02
  • 2021-12-02
  • 2021-12-02
  • 2021-12-30
  • 2021-09-27
  • 2021-12-10
猜你喜欢
  • 2022-01-23
  • 2021-06-28
  • 2021-09-24
  • 2022-01-08
  • 2021-12-04
相关资源
相似解决方案