前言
JavaScript最简单的方法实现简易的加减乘除计算器
一、效果图
![在这里插入图片描述](https://img-blog.csdnimg.cn/747c7e0fbf3e43998c680189ca4e7560.gif)
二、代码
1.HTML代码
<form action="" method="get">
<input id="box1" type="text" name="" id="" value="" />
<div class="box2">
<button type="button" onclick="cal('1')">1</button>
<button type="button" onclick="cal('2')">2</button>
<button type="button" onclick="