摘要: 1、各种浏览器的Hack写法: .demo{ color:#222;/* 所有浏览器 */ color:#333\9;/* 所有IE浏览器 */ color:#444\0;/* IE8-9浏览器 */ *color:#555;/* IE6-7浏览器 */ +color:#666;/* IE7浏览器 ... 阅读全文
posted @ 2015-03-09 10:27 shelly双鱼座 阅读(203) 评论(0) 推荐(0)
摘要: 工厂模式:public interface Cookie { public abstract void run ();}public abstract class CookieFactory { abstract Cookie create();}public class Bea... 阅读全文
posted @ 2014-09-12 22:59 shelly双鱼座 阅读(132) 评论(0) 推荐(0)
摘要: 1、FileInputStream() // 构建字节输入流对象,参数为文件名 FileInputStream fin = new FileInputStream("message"); System.out.printl... 阅读全文
posted @ 2014-09-10 23:16 shelly双鱼座 阅读(4320) 评论(0) 推荐(0)
摘要: public class MyThread extends Thread{ private static int ticket=100; public void run(){ for(int i=0;i0) System.out.println... 阅读全文
posted @ 2014-09-10 22:46 shelly双鱼座 阅读(1984) 评论(3) 推荐(1)
摘要: //单例模式public class Singleton { private static Singleton s; private Singleton(){ } public static Singleton getSingleton(){... 阅读全文
posted @ 2014-09-10 22:36 shelly双鱼座 阅读(374) 评论(0) 推荐(0)
摘要: 一、基本简介1、下载:http://jquery.com提供了最新的jQuery框架下载。通常只需下载最小的jQuery包(Minified)即可。 ( 目前最新的版本jquery-1.3.2.min.js文件只有55.9 KB )2、引用: 将jQuery框架文件导入后,就可以使用jQu... 阅读全文
posted @ 2014-09-05 21:05 shelly双鱼座 阅读(657) 评论(0) 推荐(0)
摘要: 1、运行环境:NetBeans IDE 6.0.12、说明:先运行服务器端,再运行客户端。3、服务器端代码: 新建java类Testimport java.net.*;import java.io.*;public class Test { //服务器端server public stati... 阅读全文
posted @ 2014-04-28 11:37 shelly双鱼座 阅读(227) 评论(0) 推荐(0)
摘要: 一、JSP指令1、page指令 定义:将关于JSP页面一般设置通知给web容器的属性。 语法: 属性:language;extends;import;session;buffer;autoflush;isThreadSafe;errorPage;isErrorPage;contentType2... 阅读全文
posted @ 2014-04-25 16:08 shelly双鱼座 阅读(1669) 评论(0) 推荐(0)
摘要: 一、创建新表(假设在master数据库下新建)二、连接数据库开始-->控制面板-->管理工具-->数据源-->系统DSN-->添加-->SQL Server-->名称:userdb-->服务器:(local)\SQLEXPRESS或选择本机名-->下一步-->下一步-->打钩-更改默认的数据库为:m... 阅读全文
posted @ 2014-04-25 15:05 shelly双鱼座 阅读(1905) 评论(0) 推荐(0)
摘要: 一、qq是否在线1、添加Web引用 qqOnlineWebService cn.com.webxml.www.qqOnlineWebService shelly1 = new NIIT1109.cn.com.webxml.www.qqOnlineWebService();//qq是否在... 阅读全文
posted @ 2014-04-21 11:43 shelly双鱼座 阅读(556) 评论(0) 推荐(1)