02 2012 档案

摘要:<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DO 阅读全文
posted @ 2012-02-25 21:32 一直在等 阅读(353) 评论(0) 推荐(0) 编辑
摘要:<!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 一直在等 阅读(286) 评论(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 一直在等 阅读(204) 评论(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 一直在等 阅读(226) 评论(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 一直在等 阅读(256) 评论(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 一直在等 阅读(752) 评论(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 一直在等 阅读(226) 评论(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 一直在等 阅读(809) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示