zoukankan      html  css  js  c++  java
  • Java高级架构师(一)第16节:Mybatis动态查询和Json自动拼装

    <%@ page language="java" contentType="text/html; charset=utf-8"
        pageEncoding="utf-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link href="${pageContext.request.contextPath}/static/css/application.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.js"></script>
    </head>
    <body>
    <script type="text/javascript">
    	$().ready(function(){
    		$("#btn_query").click(function(){
    			
    		    var json = '{"customerId":"'+$("#customerId").val()+'"'+
    		    	       ',"pwd":"'+$("#pwd").val()+'"'+
    		    	       ',"showName":"'+$("#showName").val()+'"'+
    		    	       ',"trueName":"'+$("#trueName").val()+'"'+
    		    	       '}';	
    			window.location.href = "${pageContext.request.contextPath}/customer/toList?queryJsonStr="+json;
    		});		
    	});
    </script>
    
    <table width="100%" border="1" cellpadding="0" cellspacing="1" class="tableLine">
    	<tr>
    		<td colspan=4 align=center class="tableLineBg">客户查询</td>
    	</tr>
    	<tr>
    		<td>客户编号</td>
    		<td><input type="text" id="customerId" name="customerId" class="input"></td>
    		<td>客户密码</td>
    		<td><input type="text" id="pwd" name="pwd" class="input"></td>
    	</tr>
    	<tr>
    		<td>显示名称</td>
    		<td><input type="text" id="showName" name="showName" class="input"></td>			
    		<td>真实姓名</td>
    		<td><input type="text" id="trueName" name="trueName" class="input"></td>
    	</tr>		
    	<tr>
    		<td colspan=4 align=center><input id="btn_query" type="button" value="查询" class="button"></td>
    	</tr>
    </table>
    
    </body>
    </html>
    

      

  • 相关阅读:
    区块链技术术语表
    以太坊客户端Geth命令用法-参数详解
    智能合约开发环境搭建及Hello World合约
    以太坊是什么
    比特币区块结构Merkle树及简单支付验证分析
    非对称加密技术- RSA算法数学原理分析
    验证APNS证书的有效性
    十八般武艺之 Runloop
    iOS 所有设备一览 && CoreFoundation源码
    [User Defaults] Failed to read values in CFPrefsPlistSource (iOS 10)
  • 原文地址:https://www.cnblogs.com/sunrunzhi/p/10118952.html
Copyright © 2011-2022 走看看