开了博客竟然有9个月没在来写过了。真是惭愧。今天需要用到一个用js替换地址栏参数的的功能。就自己用JS自己写了一个简单的函数。贴出来仅供大家参考。代码都写了注视。如下:/*js替换URL参数值,无该参数则添加例:http://www.daoyan.com/aaa.htm?cid=aaa&cname=...
分类:
Web程序 时间:
2014-05-17 15:04:00
阅读次数:
477
CSS3
居然会在隐藏显示的时候触发,真心太神奇了貌似我还是写了大循环,怎么样才能优化这个循环呢加载图片:已经用到过好多次了function loadImg(url){
var img = new Image(); //创建一个Image对象,实现图片的预下载 img.s...
分类:
其他好文 时间:
2014-05-16 04:03:56
阅读次数:
271
一、window.open()乱码:
JS中使用window.open("url?param="+paramvalue)传递参数出现乱码,提交的时候,客户端浏览器URL中显示参数是正确的,
但是传到了服务器端是是乱码。这种情况下需要在客户端对该参数进行编码,然后在服务器端解码即可。1、JS客...
分类:
Web程序 时间:
2014-05-16 01:05:01
阅读次数:
513
一般给一个元素设置背景:.lcProIcon { background:
url("images/lcProIcon.png") no-repeat; display: inline-block; height: 56px;
left: 0; position: abs...
分类:
其他好文 时间:
2014-05-15 21:19:44
阅读次数:
333
Requirements:
1,需要一个linux系统。
2, X-Server。(在命令行下实现对X-server的模拟,渲染图形进行缓存)-在没有安装X-Server的环境下提供图像渲染)
Agenda:
以ubuntu系统为例:
1, 打开命令行。
2,安装svn,g++,如果以前装过,执行这段命令也没关系,不会报错。sudo apt-get ...
分类:
Web程序 时间:
2014-05-15 19:29:59
阅读次数:
542
(1)myeclipse→help→Myeclipse configuration
center:点击sofeware选项卡,在Browes Software 下有一个输入框,点击add site按钮:Name输入
Abator,URL输入http://ibatis.apache.org/tools...
分类:
系统相关 时间:
2014-05-15 18:04:50
阅读次数:
437
使用 el表达式方法:var urlParamValue =
"${param.urlVarName}";使用 Jsp 表达式var urlParamValue2 = "";
分类:
Web程序 时间:
2014-05-15 17:23:58
阅读次数:
361
02//地址:http://static.xiaomi.cn/51503//@author:liuzh04//@url:http://blog.csdn.net/isea53305varstart
= 10000000;06varautoEgg = {07start:function(){08//5...
分类:
移动开发 时间:
2014-05-15 17:19:19
阅读次数:
444
public class Url { /** * @param args * @throws
IOException */ public static void main(String[] args) throws IOException { ...
分类:
其他好文 时间:
2014-05-15 17:14:47
阅读次数:
260