⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form.htm

📁 java script web控件 包含了树 列表 表单的操作
💻 HTM
字号:
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

	<title> New Document </title>
	<meta http-equiv="Content-Type" content="text/html; charset=GBK">
	<link href="component.css" rel="stylesheet" type="text/css">
	<script src="grid.js"></script>
	<script src="SigmaBase.js"></script>
	<script src="SigmaForm.js"></script>
	<script src="editors.js"></script>
	<script>
		var sform = null;
		window.onload = function(){
			
			sform = new SigmaForm();
			calendar_base_url = "file://d:/newJsComponent/grid/hxdGrid/";
			//sform.baseUrl = "file://d:/newJsComponent/grid/hxdGrid/";
			sform.bindFormById("test");
		}
		function test(){
			alert("test");
		}
	</script>
</head>
	
<body>
	<form  name="test">
	<table style="table-layout:fixed;width:600">
		<tr>
			<td width=100>
			出生日期:
			</td>
			<td width=300>
			<input type="text" name="birthday" value="1977-04-14" mode="date" caption="出生日期" notNull="false">
			</td>
			<td width=100>姓名:
			</td>
			<td width=200><input type="text" name="name" mode="function" cmd="test()" caption="姓名" value="ssss" notNull="true"></td>
			
		</tr>
		<tr>
			<td>年龄:</td>
			<td><input type="text" name="age" mode="number" caption="年龄" notNull="true" value=""></td>
			<td>月薪</td>
			<td><input type="text" name="salary" mode="money" caption="月薪"></td>
		</tr>

		<!-- <tr>
			<td>爱好</td>
			<td><input type="text" name="ah" mode="number" caption="学历" notNull="true" value=""></td>
			<td>学历</td>
			<td><input name="xl" mode="select" caption="学历" value="1" options='[{name:"本科",id:"1"},{name:"硕士",id:"2"},{name:"博士",id:"3"}]'></td>
		</tr> -->
	</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -