2011 年文章归档
共 547 篇文章
jquery ajax json 实例(文本框,下拉框操作)
package com.ygw.stu.stuser.ta.json; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.regex.*; import net.sf.json.JSONArray; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionSupport; import…
2011-12-31 11:47
jquery ajax json 实例(文本框,下拉框操作)
package com.ygw.stu.stuser.ta.json; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.regex.*; import net.sf.json.JSONArray; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionSupport; import…
2011-12-31 11:47
jquery ajax json 实例(文本框,下拉框操作)
2011-12-31 11:47
jquery select下拉框操作
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#ss").change(function(){ var checkText=$("#ss").find("option:selected").text(); var checkValue=$("#ss").val(); alert(checkText);alert(checkValue); $("#sele…
2011-12-31 11:24
jquery select下拉框操作
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#ss").change(function(){ var checkText=$("#ss").find("option:selected").text(); var checkValue=$("#ss").val(); alert(checkText);alert(checkValue); $("#sele…
2011-12-31 11:24
jquery select下拉框操作
2011-12-31 11:24
jQuery给控件赋值....
1.jQuery给span取值:$("#id").html(); 2.jQuery给input取值:$("#id").val(); 3.jQuery给textarea取值:$("#id").val(); 4.jQuery给radio取值(非主创): 今天写Js的时候发现利用jquery取不到radio的当前值,上网Google下,发现网上的解决方案都是依托于1.2版本的,jquery的1.3版本已经去掉的属性选择器@符号。 (1.2)以前的版本对于radio取当前值的方式: $("input[@type=radio][@checked]") 把@去掉发现能得到object,但是取到的当前值不…
2011-12-31 10:11
jQuery给控件赋值....
1.jQuery给span取值:$("#id").html(); 2.jQuery给input取值:$("#id").val(); 3.jQuery给textarea取值:$("#id").val(); 4.jQuery给radio取值(非主创): 今天写Js的时候发现利用jquery取不到radio的当前值,上网Google下,发现网上的解决方案都是依托于1.2版本的,jquery的1.3版本已经去掉的属性选择器@符号。 (1.2)以前的版本对于radio取当前值的方式: $("input[@type=radio][@checked]") 把@去掉发现能得到object,但是取到的当前值不…
2011-12-31 10:11
jQuery给控件赋值....
2011-12-31 10:11
jquery 根据name属性获取对象(=document.getElementByName("") )
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").focus(function(){ $("input").css("background-color","#FFFFCC"); }); $("input").blur(function(){ $("input").css("background-color","#D6D6FF"); var d…
2011-12-30 18:58
jquery 根据name属性获取对象(=document.getElementByName("") )
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").focus(function(){ $("input").css("background-color","#FFFFCC"); }); $("input").blur(function(){ $("input").css("background-color","#D6D6FF"); var d…
2011-12-30 18:58
jquery 根据name属性获取对象(=document.getElementByName("") )
2011-12-30 18:58
查询null以及length(),trim()使用
select * from stu_course t -- 产品 select * from stu_course t where t.is_publish='Y' and t.pid is null -- 模块 select t.*,length(trim(t.code)) lengthhh from stu_course t where t.is_publish='Y' and t.pid is not null and length(trim(t.code))>4 -- select * from student s where s.sno= 183 order by --- nvl(…
2011-12-22 21:22
查询null以及length(),trim()使用
select * from stu_course t -- 产品 select * from stu_course t where t.is_publish='Y' and t.pid is null -- 模块 select t.*,length(trim(t.code)) lengthhh from stu_course t where t.is_publish='Y' and t.pid is not null and length(trim(t.code))>4 -- select * from student s where s.sno= 183 order by --- nvl(…
2011-12-22 21:22
查询null以及length(),trim()使用
2011-12-22 21:22
JS解析json数据(如何将json字符串转化为数组)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <SCRIPT LANGUAGE="JavaScript"> var t="{'firstName': 'cyra', 'lastName': 'richardson', 'address': { 'streetAddress': '1 Microsoft way', 'city': 'Redmond', 'state': 'WA', 'postalCode': 98052 },'…
2011-12-22 20:01
JS解析json数据(如何将json字符串转化为数组)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <SCRIPT LANGUAGE="JavaScript"> var t="{'firstName': 'cyra', 'lastName': 'richardson', 'address': { 'streetAddress': '1 Microsoft way', 'city': 'Redmond', 'state': 'WA', 'postalCode': 98052 },'…
2011-12-22 20:01
JS解析json数据(如何将json字符串转化为数组)
2011-12-22 20:01
自己做出来的一个jquery ajax实例,不容易
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="t" uri="/WEB-INF/templet.tld" %> <%@ taglib prefix="app" uri="/WEB-INF/app.tld" %> <%@ page import="com.ps.user.*" %> <app:jsphelper type="js" src="js/reference.js" /> <app:jsphelper type="js" …
2011-12-16 18:14
自己做出来的一个jquery ajax实例,不容易
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="t" uri="/WEB-INF/templet.tld" %> <%@ taglib prefix="app" uri="/WEB-INF/app.tld" %> <%@ page import="com.ps.user.*" %> <app:jsphelper type="js" src="js/reference.js" /> <app:jsphelper type="js" …
2011-12-16 18:14