上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>ajax.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is 阅读全文
posted @ 2012-02-21 14:20 一直在等 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 一、下载安装包(Discuz_6.0.0_SC_UTF8.zip)新版本要装Ucenter,太麻烦……二、解压到htdocs目录下三、修改upload目录下的cinfig.inc.php文件$dbhost = 'localhost'; // 数据库服务器 $dbuser = 'root'; // 数据库用户名 $dbpw = 'java'; // 数据库密码 $dbname = 'discuz'; // 数据库名 $pconnect = 0; // 数据库持久连接 0=关闭, 1=打开$adminemail = 'admi 阅读全文
posted @ 2012-02-18 14:02 一直在等 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 一、在apache的conf目录下的httpd.conf加入如下代码:LoadModule php5_module D:/php-5.3.10/php5apache2_2.dllPHPIniDir D:/php-5.3.10AddType application/x-httpd-php .php .phtml二、把php.ini-development文件改成php.ini,因为我们的php设置需要在php.ini中修改三、在php.ini中指定对应的功能模块我们指定php的扩展库路径extension_dir = "D:/php-5.3.10/ext"测试是否成功< 阅读全文
posted @ 2012-02-17 23:12 一直在等 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 一、对象冒充function Parent(username){ this.username=username; this.sayHello=function(){ alert(this.username); }}function Child(username,password){ //这三行关键代码 this.method=Parent; this.method(username); delete this.method; this.password=password; this.sayWorld=function(){ alert(t... 阅读全文
posted @ 2012-02-17 13:53 一直在等 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 一、可以动态添加对象属性,可以动态删除对象属性<script type="text/javascript"> var object=new Object(); object.username="zhangsan"; alert(object.username); delete object.username; alert(object.username);</script>二、定义对象最常见的方式<script type="text/javascript"> var object={username 阅读全文
posted @ 2012-02-17 11:51 一直在等 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 在http://httpd.apache.org/上下载httpd-2.2.22-win32-x86-no_ssl.msihttp://apache.chinahtml.com/apache2.2中文参考手册httpd.conf文件中Listen 80可以设置端口号(可以同时监听多个端口)配置虚拟目录以及访问权限在<IfModule dir_module> DirectoryIndex index.html</IfModule>之后,添加<IfModule dir_module> DirectoryIndex index.html index.htm ind 阅读全文
posted @ 2012-02-16 22:53 一直在等 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 假设如下应用:两张表——用户表TDefUser(userid,address,phone)和消费表 TAccConsume(userid,time,amount),需要查消费超过5000的用户记录。用exists:select * from TDefUserwhere exists (select 1 from TAccConsume where TDefUser.userid=TAccConsume.userid and TAccConsume.amount>5000)用in:select * from TDefUserwhere userid in (select userid fr 阅读全文
posted @ 2012-02-08 16:43 一直在等 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 通过xml配置文件bean配置在xml里面,spring提供多种方式读取配置文件得到ApplicationContext.第一种方式:FileSystemXmlApplicationContext通过程序在初始化的时候,导入Bean配置文件,然后得到Bean实例:ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml")ac.getBean("beanName");第二种方式:WebApplicationContextUtil在B/S系统中,通 阅读全文
posted @ 2012-01-28 16:04 一直在等 阅读(2632) 评论(0) 推荐(1) 编辑
摘要: import java.util.ArrayList;import java.util.List;//被观察者接口interface Watched{ public void addWatcher(Watcher watcher); public void removeWatcher(Watcher watcher); public void notifyAllWatchers(String str);}//被观察者实现类class ConcreteWatched implements Watched{ List<Watcher> watchers=new ArrayL... 阅读全文
posted @ 2012-01-08 19:46 一直在等 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 一.准备工作“工欲善其事必先利其器。”1.电脑不一定要配置高,但是双屏是必须的,越大越好,能一个横屏一个竖屏更好。一个用来查资料,一个用来写代码。总之要显得信息量很大,效率很高。2.椅子不一定要舒服,但是一定要可以半躺着。3.大量的便签,各种的颜色的,用来记录每天要完成的事务,多多益善。沿着电脑屏幕的边框,尽量贴满,显出有很多事情的样子。4.工具书,orelly的,机械工业,电子工业什么的都可以,能英文就英文,不行影印版的也可以,反正越厚越好,而且千万不要放在书架上,一定要堆在桌上,半打开状。二.从进门开始1.着装!着装!不管你是去实验室,或者去公司的大楼,在或者是小公司的民宅,或是自己创业的 阅读全文
posted @ 2012-01-06 16:10 一直在等 阅读(1127) 评论(2) 推荐(4) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页