MyCalView.php
<html>
<head>
<title>我的计算器</title>
<script language="javascript">
function check(){
//js的内容
var num1var=document.getElenmentById("num1").value;
var num2var-document.getElenmentById("num2").value;
if(isNaN(num1val) || isNaN(num2val)){
window.alert("num1和num2必须是数");
//如果返回false就不提交.
return false;
}}
</script>
<head>
<h1>我的计算器</h1>
<form action="CalProcess.php" method="post">
num1:<input type="text" name="num1"></br>
num2:<input type="text" name="num2"></br>
oper:
<select name="oper">
<option value="+">+</option>
<option value="-">-</option>
<option value="*" >*</option>
<option value="/">/</option>
<input type="submit" value="提交">
</form>
</html>
MyCalView.php的更多相关文章
随机推荐
- MongoDB概念解析
数据库 MongoDB默认把_id设置为主键(_开头的键是保留的) 数据库名必须为小写 RDBMS与MongoDB对应的术语比较 需注意 文档中的键/值对是有序的. 文档中的值不仅可以是在双引号里面的 ...
- python_计算一段文本各个字符的出现个数
>题目要求 任意给定一段文本,求出每个字符出现的个数,并且打印出来 >程序实现 import pprint str01 = "重庆市,简称巴和渝,别称山城.渝都.雾都.桥都,中华 ...
- css实现元素居中
参见详细教程,该教程涵盖了所有居中的情况: https://css-tricks.com/centering-css-complete-guide/ css元素居中 1.水平居中 1)文本,图片等行 ...
- UIButton属性
1.UIButton状态: UIControlStateNormal // 正常状态 UIControlStateHighlighted // 高亮状态 UICo ...
- PLSQL 的简单命令之三
-- 查找两个表中ID相等的 select a.id, a.name,b.math from stu a,scores b where a.id = b.id -- 右外连接 select b.id, ...
- define 实例
// ----------------------------------------------define------------------------------------- // #def ...
- 解决多线程调用sql存储过程问题
场景: 我们程序现在改成多线程了,我现在需要把临时表中的数据给插入到TABLE_M中,但这时候可能其他的线程也在插入,我就不能用之前我们的方案了(select max(oid) from Tuning ...
- SQL循环添加表中的字段
USE BookDiscuss DECLARE @num INT DECLARE @numdiff INT DECLARE @table VARCHAR(50 ...
- Lintcode: Interval Minimum Number
Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. ...
- SQL 数据库 连接查询 变量、if else、while
一.连接查询:通过连接运算符可以实现多个表查询. 连接是关系数据库模型的主要特点,也是它区别于其它类型数据库管理系统的一个标志. 常用的两个链接运算符: 1.join on(左右连接) 2.uni ...