- 博客(24)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注

原创 Jquery.Ajax jsonp跨域请求,jsp页面响应
html代码: 聊天 $(function () { $.ajax({ url: 'http://localhost:8080/TestServlet/index.jsp', type: 'get',
2015-03-05 12:50:28
1333
原创 测试
# 不自动连接数据库 今天使用java程序,发现当程序空置久了,就会爆出数据库连接错误 发现在连接数据库字符串中 jdbc:mysql://ip:3306/xxx?autoReconnect=true&useUnicode=true&characterEncoding=gbk&serverTimezone=GMT%2B8 .on({ mouseenter:fu
2015-04-03 16:42:44
1797
原创 img div之间间隙 图片与div之间的间隙
今天做网页的时候,碰见一个小bug 图片 图片 图片 在中间位置产生了两像素的间隙。 设置图片:display:block 问题解决。
2015-03-31 10:10:13
1854
原创 bootstrap3 兼容IE8
要想兼容IE8 一定要引用html5shiv.js、respond.js 两个文件,废话少说,上图 html5shiv.js github 地址:https://github.com/aFarkas/html5shiv respond.js github 地址: https://github.com/scottjehl/Respond
2015-03-04 13:28:25
602
原创 Notepad++ 插件TextFX使用 (代码整理)
最近一直在用Notepad++ 发现居然没有代码整理快捷键功能,于是google发现是需要安装TextFX插件。 可是当安装完插件之后还是不能够使用代码整理功能。于是找到TextFX老版本的文件替换即可 http://pan.baidu.com/s/1jGvJg5C 解压后会出现一个文件夹与一个dll文件 NppTextFX.dll 直接复制到Notep
2015-02-28 16:55:08
3310
原创 css3 shadow 属性讲解
属性: h-shadow: 必需。水平阴影的位置。允许负值。 测试 v-shadow: 必需。垂直阴影的位置。允许负值。 测试 blur: 可选。模糊距离。 测试 spread: 可选。阴影的尺寸。 测试 color: 可选。阴影的颜色。请参阅 CSS 颜色值。 测试 inset: 可选。将外部阴影 (outset) 改为内部阴影。 box-shadow
2014-12-19 17:44:43
589
原创 虚拟机 安装 redhat5 linux 菜鸟纯自学笔记整理
以下是我手动整理的。纯菜鸟笔记。 从无到有安装linux redhat5。希望对你们有所帮助 因为是虚拟机安装linux 在这里就介绍两个安装虚拟机的软件 1.vmware 大部分的人也许都会选择这个。可是这个是收费软件。网上有很多破解版。我用的是6.5 ,貌似现在都出7了。以前是别人帮我安装的。 这次是自己安装的,出现问题.然后我拆卸重装之后发现了N多问题。于是乎放弃。 2.Virt
2012-09-03 15:50:01
246
转载 c# 淡入淡出 右下角弹出提示框
直接上代码。简洁明了。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.For
2012-09-03 15:47:27
1244
原创 c# 接收返回字符串 HttpWebResponse 生成图片
接收字符串 // 接收返回的页面 HttpWebResponse response = request.GetResponse() as HttpWebResponse; System.IO.Stream responseStream = response.GetResponseStream();
2012-08-31 09:49:36
5156
原创 c# 发送http请求 到 servlet 跨平台 上传图像文件
最近经常用到c# 遇到一个需求。 由c#发送http请求流 到 servlet 接收文件流生成图片。 原理: c# 获取文件 ---> 转化请求流 ---> 发送post提交 ----> servlet 接收输入流 --->生成文件 c#代码 String fileToUpload = "E:\\father.jpg"; //要发送请求的地址
2012-08-30 22:28:35
3167
转载 sqlserver 远程连接 报错
1.server要保证在SQL Server Configuration Manager里的SQL Server 2005 Network Configuration里,确保TCP/IP的protocol是enable的。 2.client也要保证Native的TCP/IP protocol也enable。 3.当然要确保server的sql s
2012-08-30 15:01:18
614
原创 Spring的任务调度服务实例讲解
记的以前在做一家人才招聘网站时遇到的一个问题,因为白天的流量非常大为了减轻网站的压力所以客户要求一些不是太急手的任务(如,给注册用户发送邮件、清理日常垃圾信 息等等)都放在凌晨流量最小的时间段去执行,当时我们借助java.util.Timer来实现的。但是对于更加复杂的任务调度Timer就不太容易了,后来了解了Quartz(OpenSymphony的 提供任务调务类库)可以大大
2012-08-30 13:10:13
598
转载 oracle rownum 分页
rownum 真的是很好的东西,现在大多数用于存储过程分页. 但怎么用呢?这就来研究一下。 嘿嘿 --- 以下为转载之处,仅供学习 对于rownum来说它是oracle系统顺序分配为从查询返回的行的编号,返回的第一行分配的是1,第二行是2,依此类推,这个伪字段可以用于限制查询返回的总行数,而且rownum不能以任何表的名称作为前缀。 举例说明: 例如表:student
2012-08-30 13:01:53
553
原创 sqlyog 远程连接mysql Error No. 1130 错误
# mysql mysql> grant all privileges on *.* to 'root'@'%' identified by '123456'; mysql> flush privileges; mysql> exit
2012-08-29 14:59:05
1368
转载 C# 发送 get请求 得到页面内容
最近要用C# 发送HTTP 请求到一个地址 然后读取页面内容 精简代码如下 : get 请求 public static string GetUrltoHtml(string Url, string type) { try { System.Net.WebRequest w
2012-08-28 14:23:25
1393
转载 c# java Encrypt 同步 加密 解密
.net static void Main(string[] args) { string encryptKey = ".netkean"; string plaintexta = EncryptDES("123456", encryptKey); string ddes = Dec
2012-08-28 13:03:02
871
原创 C# 扫描局域网IP 计算机名称
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Sy
2012-08-21 16:15:11
1201
原创 C# 读写文件 菜鸟笔记。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ReadFile { class Program { static void Main(string[] args)
2012-08-20 15:35:22
578
原创 C# 读写文件 菜鸟笔记。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ReadFile { class Program { static void Main(string[] args)
2012-08-20 15:34:06
228
原创 AJAX JQUERY STRUTS2.....异步验证用户名
<br />首先在web.xml加上统一编码过滤器.為的是防止乱码.<br /> <br /> <filter><br /> <filter-name>Set Character Encoding</filter-name><br /> <filter-class><br /> com.filter.SetCharacterEncodingFilter<br /> </filter-class><br /> <init-param><br /> <param-name>encoding</p
2011-04-19 09:28:00
1494
这个sql怎么写? mysql数据库
2016-11-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人