自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 Java Http下载文件到本地

[img]http://dl.iteye.com/upload/attachment/0074/3834/a03aaebe-1dbf-3f20-8966-426e705ac167.png[/img][code="java"]package com.proxy.util;import java.io.BufferedOutputStream;import java.io.Fi...

2012-09-26 16:34:09 413

原创 Navicat 中文乱码问题

[img]http://dl.iteye.com/upload/attachment/0074/3302/024694e2-d552-36f6-8015-58b62ac91ff3.jpg[/img]解决方法:1、关闭数据库连接;2、右击数据库选择“连接属性”;3、选择“高级”属性页,将“使用MySQL字符集”的勾去掉,并选择“编码”为“936 (ANSI/OEM - Sim...

2012-09-25 16:47:14 477 1

原创 win7 flash无法全屏,win7全屏问题

在播放flash视频的是,点击右键设置,取消硬件加速即可![img]http://dl.iteye.com/upload/attachment/0074/2838/24896256-f6df-38de-a14f-0f044539f0d5.jpg[/img]

2012-09-24 21:39:40 196

原创 jQuery选择不包含某个ID的其他数据

[code="js"]$('li').not(':even').css('background-color', 'red');[/code][code="js"]$('li').not(document.getElementById('notli')) .css('background-color', 'red');[/code][code="js"]...

2012-09-21 14:42:54 333

原创 彻底删除BabylonToolbar http://isearch.claro-search.com

这个插件很是烦人,在各个浏览器都存在,真心想删除。金山卫士可以删除IE的,不过chrome还是不行。win+r 输入;regeditctrl+F 查找:Babylon 和 claro-search然后找到删除,继续搜索按:F3[code="cmd"]HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\S...

2012-09-21 11:39:40 198

原创 DB2获取当前时间

[code="sql"]SELECT current date FROM sysibm.sysdummy1;[/code]'2012-09-20'[code="sql"]SELECT current time FROM sysibm.sysdummy1;[/code]'14:04:04'[code="sql"]SELECT current timesta...

2012-09-20 14:05:33 1399

原创 DB2 查看表结构,DB2查看所用表

查看所用表(注:条件内容需要大写)[code="sql"]select * from sysibm.systables where type='T' and creator = 'FRONT'[/code][img]http://dl.iteye.com/upload/attachment/0074/0786/11af1c6f-8112-3e21-a479-c608404abf...

2012-09-20 09:58:15 2967

原创 jQuery在IE中报错,但不影响功能的实现

在Chrome和Firefox中正常,在IE中会报错,但不影响使用[code="js"]jQuery(".goFreeInsuranceBtn").text("我要参与");jQuery(".goHomeBtn").text("我已参与,返回");[/code]在Chrome和Firefox中正常,在IE中不会报错修复:获取class里面的第一个子项[code="j.

2012-09-14 10:51:39 151

原创 jQuery查看事件内容,click事件内容

[code="js"]// 查看所有事件内容$("#bigImg").data("events");[/code][code="js"]// 查看点击事件内容$("#bigImg").click;// 测试点击事件$("#bigImg").click();[/code][img]http://dl.iteye.com/upload/att

2012-09-10 13:47:50 294

原创 jQuery,js实现Iframe自适应高度(兼容多浏览)

// 我们在aa.html里面有个iframe,加载内容为bb.html[code="html"][/code][color=red]方式一[/color][code="js"]//引入jQuery //document.domain = "fx-func.com";//指向根域 $(window.parent.do...

2012-09-10 10:22:15 1151

原创 js获取iframe对象,跨域操作?

[code="js"]//通过这样即可获取iframe中的元素document.getElementById("myFrame").contentWindow.document.getElementById('ss').innerHTML;// 等价于window.frames[0] // is the same thing as document.getElementsB...

2012-09-10 10:15:50 1796

原创 js鼠标滑轮滚动事件绑定(兼容主流浏览器)

[code="js"]/** Event handler for mouse wheel event. *鼠标滚动事件 */ var wheel = function(event) { var delta = 0; if (!event) /* For IE. */ event = window.event; if (event.whee...

2012-09-07 11:19:27 587

原创 js prototype使用大全详解

[code="js"]// 扩展本地对象//We create the method prototype for our arrays //It only sums numeric elements Array.prototype.sum = function(){ var len = this.length; total = 0; for(var...

2012-09-06 23:06:02 190

原创 js函数调用对象单击事件

[code="js"]// 函数就是像strings或numbers那样的数据,我们可以把它们当成函数参数来传递它们,这可以创建十分令人惊讶而又“威风凛凛”的Web应用程序。这个方法是非常有用的,几乎所有的主流框架都使用了这个方法。function byId(element, event, f){ Document.getElementById(element).['on'+...

2012-09-06 22:56:22 330

原创 js操作函数,判断传递参数合法性和个数

[code="js"]// 了解一个函数需要多少个变量 function add_nums(num1, num2){ return num1 + num2; } add_nums.length // 2 is the amount of parameters expected by the function add_nums [/code][code="js"]...

2012-09-06 22:50:57 219

原创 js操作数组,追加,更改长度,js循环数组

[code="js"]// 这个技巧可以让你使用Length属性在一个数组的最后添加一个元素,因为Length属性比数组的最后一个元素的下标多1。这个方法和“push”方法是相同的。例如:var myArray = []; myArray[myArray.length] = 'New Element';[/code][code="js"]// 调整一个数组的长度...

2012-09-06 22:47:55 1586

原创 js正则去空格,全空格,左右空格

[code="js"]String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim = function() { return this.replace(/(^\s*)/g, ""); } String....

2012-09-06 22:42:24 208

原创 js获取url的参数和值的N种有效方法

[code="js"]function getParameterByName(name){ name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS);

2012-09-05 23:09:37 204

原创 html表格自动宽度,html table auto width

自适应宽度:[code="css"]td { width: 1px; white-space: nowrap; // 自适应宽度 word-break: keep-all; // 避免长单词截断,保持全部 }[/code]自适应高度[code="css"]table { table-layout: fixed; ...

2012-09-05 22:56:18 877

原创 jQuery追加新的元素,便于排序

[code="js"]var element = document.createElement(tagName);// create a new div element // and give it some content newDiv = document.createElement("div"); newContent = document.createText...

2012-09-04 14:29:07 159

原创 jQuery排序li,Sorting elements with jQuery

[code="js"]/** * jQuery.fn.sortElements * -------------- * @param Function comparator: * Exactly the same behaviour as [1,2,3].sort(comparator) * * @param Function getSortable * ...

2012-09-04 11:37:33 138

原创 js循环数组各种方法array-升级版

[code="js"]var myStringArray = ["Hello","World"];for (var i = 0; i < myStringArray.length; i++) { alert(myStringArray[i]); //Do something}[/code][code="js"]Array.prototype.foo ...

2012-09-04 11:06:12 143

原创 js循环map,获取所有的key和value

[code="js"]//Page地址 pageUrl : { menu : "loadPage.htm?url=/collect/menu.page", // 进入菜单页面 guangfaPage : "loadPage.htm?url=/collect/menu.page", // 进入广发信息收集页面 pinganPage : ...

2012-09-04 10:59:35 6368

原创 js循环array,json,map

[code="js"]var str = '[{"uname":"王强","day":"2010/06/17"},{"uname":"王海云","day":"2010/06/11"}]'; for(var i=0;i

2012-09-04 10:49:54 211

原创 grails创建第一个属于你的项目实战(图文)

1、下载工具:[url]http://www.springsource.org/downloads/sts-ggts[/url]直接地址:[url]spring-tool-suite-3.0.0.RELEASE-e4.2-win32-installer.exe[/url]2、安装并打开[img]http://dl.iteye.com/upload/attachment/00...

2012-09-02 10:02:01 280

原创 grails加载过程所需要的jar包

[code="java"]| Loading Grails 2.1.0| Configuring classpath| Downloading: D:\D\Java\springsource\grails-2.1.0\plugins\tomcat-2.1.0.zip| Downloading: D:\D\Java\springsource\grails-2.1.0\plugins\...

2012-09-01 22:01:04 322

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除