刚学菜鸟请教问题
用户随意(从大到小)输入两个数,求两个数之间的差怎么写
21视频那章不能看
好心人告诉下
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> <input type="text" name="num1"> - <input type="text" name="num2"> <input type="button" value=" = " onclick="cha()"> <input type="text" name="chazhi" > <script> function cha() { this.chazhi.value=this.num1.value-this.num2.value; } </script> </BODY> </HTML>