heng_aa的博客
heng_aa · 共 3 篇文章
requset对象方法和实例
jsp request对象详解 带实例 public java.lang.Object getAttribute() 返回name制定的属性值,若name不存在返回null public java.util.Enumeration getAttributeNames() 返回request对象所有属性的名字集合 public void setAttribute(String name,Object value) 返回该请求中的一个属性(属性的名字,属性的取值) 能够取得参数的方法 String getParameter(String name) 取得name的参数值 Enumeration …
2011-04-12 17:29 · jsp · 评论(0)
Jquery后台调用(更新中)
一种方法: 1.收引入jquery.js: <script type="text/javascript" src="js/jquery-1.4.js"></script> 2.页面: <form action="demo.do" method="post" id="demoForm"> ajax测试 <input type="text" id="val" /> <input type="text" id="result"/> <input type="button" id="btn" value="ajax" onclick="getData()"/> </form> 3.js: funct…
2011-03-24 10:34 · javascript · 评论(0)
JS实现三级连动
<td> <div class="field"> <select name="province" otitle="常住城市" id="shen" onchange="changeProvince();" > <option value="" otitle="常住城市"> 请选择省份 </option> </select> <select name="city" id="shi" onchange="getPreminuByCity();"otitle="常住城市"> <option value="" otitle="常住城市"> 请选择城市 </option> </select> </div…
2011-03-23 15:28 · javascript · 评论(0)