![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web前端
文章平均质量分 67
阿米尔
aaaad
展开
-
jquerry之隔行跳色
<br />效果如下图所示:<br /> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib prefix="s" uri="/struts-tags"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitiona原创 2010-08-16 20:57:00 · 1211 阅读 · 0 评论 -
js将json串转化为JSON 对象
var personStr = '{ "name": "archie", "pwd": "123456" }'; //将json串转化为JSON 对象 var personObj = eval('(' + personStr + ')'); alert(personObj.name); var listStr='[{"name":"tom","pwd":1原创 2013-04-09 08:38:42 · 961 阅读 · 0 评论 -
jqueryEasyUI自定义验证
<br />$(document).ready(function(){ winUpdate = $('#windowUpdate').window({ closed:true }); windowAdd = $("#windowAdd").window({ closed:true }); //jquery easyUI的自定义正则 $.extend($.fn.validatebox.defaults.rules原创 2011-03-21 18:29:00 · 4270 阅读 · 0 评论 -
jquery报表
主页:http://www.highcharts.com/Demo:http://www.highcharts.com/demo/下载:http://www.highcharts.com/downloads/zips/Highcharts-1.2.4.zip原创 2011-03-08 14:13:00 · 978 阅读 · 0 评论 -
iframe父子窗口的相互调用
country.jsp 北京 上海原创 2011-03-08 09:52:00 · 1665 阅读 · 0 评论 -
js传中文到后台为乱码
<br />转码<br />第一种方式:<br />String cityName=java.net.URLDecoder.decode(processedGeos[i], "UTF-8");<br /> <br />第二种方式:<br />String cityName=new String(processedGeos[i].getBytes("ISO-8859-1"),"UTF-8");原创 2011-03-08 09:27:00 · 1393 阅读 · 0 评论 -
js格式化成金额输出
<br /><mce:script language="javascript"><!-- function formatNum(num,n){//参数说明:num 要格式化的数字 n 保留小数位 num = String(num.toFixed(n)); var re = /(-?/d+)(/d{3})/; while(re.test(num)) num = num.replace(re,"$1,$2") return num;}alert(fo原创 2011-01-12 17:49:00 · 2319 阅读 · 1 评论 -
AJAX原始写法
<br /><%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>Ajax</title> <mce:script type="text/javascript"><!-- var xmlHttp;原创 2010-10-26 16:02:00 · 624 阅读 · 0 评论 -
json中文乱码
<br />前台无论是请求Servlet还是Action<br /> <br />登出json取出数据在页面上显示为乱码<br /> <br />需在后台程序中设置响应信息的字符集<br /> <br /> JSONArray jsonArray=JSONArray.fromObject(userList); HttpServletResponse response=(HttpServletResponse) ActionContext.getContext().get(ServletActionCo原创 2010-11-29 18:31:00 · 9983 阅读 · 2 评论 -
struts2 action中使用AJAX
<br /><mce:script type="text/javascript" src="scripts/jquery.js" mce_src="scripts/jquery.js"></mce:script><mce:script type="text/javascript" src="scripts/json.js" mce_src="scripts/json.js"></mce:script><script type="text/javascript"> $(docu原创 2010-09-05 21:05:00 · 1126 阅读 · 0 评论 -
AJAX应用之级联菜单
<br />package com.kaishengit.web;import java.io.IOException;import java.io.PrintWriter;import java.util.List;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;impo原创 2010-09-05 20:55:00 · 414 阅读 · 0 评论 -
AJAX应用之级联菜单
<br />package com.kaishengit.web;import java.io.IOException;import java.io.PrintWriter;import java.util.List;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;impo原创 2010-09-05 20:55:00 · 643 阅读 · 0 评论 -
网址正则验正
<br /> <mce:script type="text/javascript"><!-- function checkForm(){ if($("#fname").val().length>0){ if($("#flink").val().length>0){ var str = /^((https|http|ftp|rtsp|mms)?:////)?(([0-9a-z_!~*'().&=原创 2010-09-15 18:39:00 · 476 阅读 · 0 评论 -
css去input(type=text'')边框
input[type="text"]{ border:0px;}原创 2013-03-26 13:15:11 · 1032 阅读 · 0 评论