Jquery点击触发A标签事件,备份

功能菜单 



1、原板入库 



2、原板盘点 



3、原板查看 



4、成品入库 



5、成品盘点 



6、成品查询 



7、半成品盘点 



<tr align="center">
				<td>
					<a href="ybpd/enterStore.jsp"><span id="a1">1、原板入库</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="ybpd/check.jsp"><span id="a2">2、原板盘点</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="ybpd/retrieve.jsp"><span id="a3">3、原板查看</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="cppd/enterStore.jsp"><span id="a4">4、成品入库</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="cppd/check.jsp"><span id="a5">5、成品盘点</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="cppd/retrieve.jsp"><span id="a6">6、成品查询</span> </a>
				</td>
			</tr>
			<tr align="center">
				<td>
					<a href="bcppd/check.jsp"><span id="a7">7、半成品盘点</span> </a>
				</td>
			</tr>


// 热键设置
function hotkey() {
	$.hotkeys.add('1', function() {
				$("#a1").click();
			});
	$.hotkeys.add('2', function() {
				$("#a2").click();
			});
	$.hotkeys.add('3', function() {
				$("#a3").click();
			});
	$.hotkeys.add('4', function() {
				$("#a4").click();
			});
	$.hotkeys.add('5', function() {
				$("#a5").click();
			});
	$.hotkeys.add('6', function() {
				$("#a6").click();
			});
	$.hotkeys.add('7', function() {
				$("#a7").click();
			});
}

你可能感兴趣的:(html,jquery)