<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<title>凯文尼克 - 凯文尼克的博客</title>
<meta name="keywords" content="凯文尼克的博客空间 - Kevinick`s Blog" />
<meta name="description" content="关注IT业界资讯，书写点滴心路历程，记录琐碎生活经验，分享放大快乐心情。" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="google-site-verification" content="xk78Y9Q6zT8d_ChZxPemBwPf3urMtn6ycoOuKZcYjAI" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="alternate" title="凯文尼克" href="http://www.kevinick.com/rss.html" type="application/rss+xml" />
<link rel="stylesheet" href="http://www.kevinick.com/template/style.css" type="text/css" media="all" />
<script type="text/javascript">
var WEB_URL = "http://www.kevinick.com/";
var postminchars = parseInt("4");
var postmaxchars = parseInt("1000");
</script>
<script type="text/javascript" src="http://www.kevinick.com/js/common.js"></script>
<script type="text/javascript" src="http://www.kevinick.com/js/zoom.js"></script>
<script type="text/javascript" src="http://www.kevinick.com/js/j.soso.weather.js"></script>
<script language="javascript1.4" type="text/javascript" src="http://www.kevinick.com/js/audio-player.js"></script>
<script type="text/javascript">
var maxim = '浪费别人的时间，等于谋财害命；浪费自己的时间，那就等于在自杀。';
if(maxim != '') {
	document.title = '凯文尼克 - 浪费别人的时间，等于谋财害命；浪费自己的时间，那就等于在自杀。';
}
function checkSearch(){
	if(document.getElementById('keywords').value == ''){
		alert('请输入关键字');
		document.getElementById('keywords').focus();
		return false;
	}else{
		return true;
	}
}
function getweather(v){
	window.open("http://www.kevinick.com/plugins/weather_mini_"+v+".html","weather","height=420,width=613,top=100,left=100,toolbar=no,menubar=no,scrollbars=no");
}
</script>
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="header">
	<div class="topright">
	<div id="topsearch">
		<form method="post" name="search" id="search" action="http://www.kevinick.com/post.php" onsubmit="return checkSearch();">
		<input type="hidden" name="formhash" value="d6b89b95" />
		<input type="hidden" name="action" value="search" />
		<input maxlength="30" class="search" id="keywords" name="keywords" value="" />
		<input type="submit" class="submit" value="&nbsp;" title="搜索" /></form></div>
		<div id="guestlink">
			<a href="http://www.kevinick.com/register.html">用户注册</a> | <a href="http://www.kevinick.com/login.html">用户登陆</a> <a href="http://www.kevinick.com/rss.html" target="_blank" title="RSS 2.0 订阅"><img src="http://www.kevinick.com/images/rss.png" border="0" style="vertical-align: bottom;margin-bottom:4px;" /></a>		</div>
	</div>
	<div class="logo">
		<a href="http://www.kevinick.com/" title="凯文尼克 - 记录生活琐碎，重温点滴回忆"><img src="http://www.kevinick.com/template/images/logo.jpg" border="0" /></a>
	</div>
	<div id="Wealth" align="center">
		<img src="http://www.kevinick.com/images/loading.gif" border="0" style="margin-top:10px;" />
		<br /><font color="#cc6600">天气正在获取中...</font>
		<script type="text/javascript">MiniSite.Weather.print("Wealth");</script>
	</div>
</div>
<div id="wrap">
	<div class="" style="border-bottom: 1px solid #c8c8c8">
		<div class="topmenu">
			<ul class="navlink">
			<li class="current_page_item"><a href="http://www.kevinick.com/index.html">首页</a></li>
			<li><a href="http://www.kevinick.com/tagslist.html">标签</a></li>
			<li><a href="http://www.kevinick.com/search.html">搜索</a></li>
						<li><a href="http://www.kevinick.com/comments.html">评论</a></li>
						<li><a href="http://www.kevinick.com/trackbacks.html">引用</a></li>
						<li><a href="http://www.kevinick.com/guestbook.html">留言</a></li>
			<li><a href="http://www.kevinick.com/archives.html">归档</a></li>
			<li><a href="http://www.kevinick.com/links.html">链接</a></li>
			<li><a href="http://www.kevinick.com/plugins.html">插件</a></li>
			</ul>
		</div>
	</div>
	<div id="main">
		<div class="leftbox" id="sidebar" style="display:">
			<h1 style="border:none;"> 
			<a href="http://www.kevinick.com/archives/201112.html">&laquo;</a> 2012年01月 <a href="http://www.kevinick.com/archives/201202.html">&raquo;</a> 
			</h1>
			<div class="left_content">
				<table cellpadding="0" cellspacing="1" class="calendar" style="background:url(http://www.kevinick.com/template/calendar/month01.gif) no-repeat 0 5px;">
				<tr>
					<td class="week"><font color="#CC0000">日</font></td>
					<td class="week">一</td>
					<td class="week">二</td>
					<td class="week">三</td>
					<td class="week">四</td>
					<td class="week">五</td>
					<td class="week"><font color="#53A300">六</font></td>
				</tr>
				<tr>
<td class="cal_day1">1</td>
<td class="cal_day1">2</td>
<td class="cal_day1">3</td>
<td class="cal_day1">4</td>
<td class="cal_day1">5</td>
<td class="cal_day1">6</td>
<td class="cal_day1">7</td>
</tr>
<tr>
<td class="cal_day1">8</td>
<td class="cal_day1">9</td>
<td class="cal_day1">10</td>
<td class="cal_day1" title="11日发表了 1 篇文章"><a href="http://www.kevinick.com/archives/201201/11.html">11</a></td>
<td class="cal_day1" title="12日发表了 1 篇文章"><a href="http://www.kevinick.com/archives/201201/12.html">12</a></td>
<td class="cal_day1">13</td>
<td class="cal_day1">14</td>
</tr>
<tr>
<td class="cal_day1">15</td>
<td class="cal_day1">16</td>
<td class="cal_day1">17</td>
<td class="cal_day1">18</td>
<td class="cal_day1">19</td>
<td class="cal_day1">20</td>
<td class="cal_day1">21</td>
</tr>
<tr>
<td class="cal_day1">22</td>
<td class="cal_day1">23</td>
<td class="cal_day1">24</td>
<td class="cal_day1">25</td>
<td class="cal_day1">26</td>
<td class="cal_day1">27</td>
<td class="cal_day1">28</td>
</tr>
<tr>
<td class="cal_day2" title="29日发表了 1 篇文章"><a href="http://www.kevinick.com/archives/201201/29.html">29</a></td>
<td class="cal_day1">30</td>
<td class="cal_day1">31</td>
<td class="cal_day1"></td>
<td class="cal_day1"></td>
<td class="cal_day1"></td>
<td class="cal_day1"></td>
</tr>
				</table>
			</div>
			<h1>日志分类</h1>
			<div class="left_content">
				<ul> 
					<li class="category"><a href="http://www.kevinick.com/category/7.html">业界资讯 <span>[9]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/8.html">系统应用 <span>[85]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/6.html">网络编程 <span>[109]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/12.html">网络安全 <span>[5]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/3.html">我的收藏 <span>[11]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/10.html">影音娱乐 <span>[37]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/4.html">杂柒乱吧 <span>[57]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/13.html">感悟人生 <span>[14]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/2.html">作品展示 <span>[21]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/5.html">个人日记 <span>[36]</span></a></li><li class="category"><a href="http://www.kevinick.com/category/11.html">桌面壁纸 <span>[2]</span></a></li>				</ul>
			</div>
						<h1>日志归档</h1>
			<div class="left_content">
				<ul>
					<li><a href="http://www.kevinick.com/archives/201201.html">2012年01月 <span>[3]</span></a></li><li><a href="http://www.kevinick.com/archives/201112.html">2011年12月 <span>[8]</span></a></li><li><a href="http://www.kevinick.com/archives/201111.html">2011年11月 <span>[5]</span></a></li><li><a href="http://www.kevinick.com/archives/201110.html">2011年10月 <span>[7]</span></a></li><li><a href="http://www.kevinick.com/archives/201109.html">2011年09月 <span>[8]</span></a></li><li><a href="http://www.kevinick.com/archives/201108.html">2011年08月 <span>[2]</span></a></li><li><a href="http://www.kevinick.com/archives/201107.html">2011年07月 <span>[11]</span></a></li><li><a href="http://www.kevinick.com/archives/201106.html">2011年06月 <span>[19]</span></a></li><li><a href="http://www.kevinick.com/archives/201105.html">2011年05月 <span>[12]</span></a></li><li><a href="http://www.kevinick.com/archives/201104.html">2011年04月 <span>[7]</span></a></li>				</ul>
				<div class="more"><a href="http://www.kevinick.com/archives.html">更多...</a></div>
			</div>
						<h1>最新评论</h1>
			<div class="left_content newcomment">
				<div class="row"> <u><u>siril</u></u>: <a href="http://www.kevinick.com/jump/comment_150.html">不错， 这个有帮助谢谢分享。其实...</a> <em>12-21</em></div><div class="row"> <u><u>阿门</u></u>: <a href="http://www.kevinick.com/jump/comment_149.html">我也决定从今天开始，早睡早起。</a> <em>11-30</em></div><div class="row"> <u><u>小妖</u></u>: <a href="http://www.kevinick.com/jump/comment_148.html">呵呵，早睡早起好。养成好习惯，博...</a> <em>11-21</em></div><div class="row"> <u><u>小泡</u></u>: <a href="http://www.kevinick.com/jump/comment_147.html">嗯。还好吧</a> <em>11-14</em></div><div class="row"> <u><u>kevinick</u></u>: <a href="http://www.kevinick.com/jump/comment_146.html">我的就自己写的，简单方便，还可以...</a> <em>11-03</em></div><div class="row"> <u><u>Karson</u></u>: <a href="http://www.kevinick.com/jump/comment_145.html">以前我也记账，用了好多记账软件都...</a> <em>11-02</em></div><div class="row"> <u><u>kevinick</u></u>: <a href="http://www.kevinick.com/jump/comment_140.html"> 健康是人最大的财富，就算你经济...</a> <em>10-20</em></div><div class="row"> <u><u>jeep鞋</u></u>: <a href="http://www.kevinick.com/jump/comment_132.html">退一步海阔天空，仁者见仁智者见智...</a> <em>10-08</em></div><div class="row"> <u><u>Karson</u></u>: <a href="http://www.kevinick.com/jump/comment_131.html">幸福时时刻刻围绕在我们身边，我们...</a> <em>10-07</em></div><div class="row"> <u><u>Karson</u></u>: <a href="http://www.kevinick.com/jump/comment_130.html">前两天看大汉天子时里面有一句话让...</a> <em>10-07</em></div>				<div class="more"><a href="http://www.kevinick.com/comments.html">更多...</a></div>
			</div>
						<h1>统计信息</h1>
			<div class="left_content stat">
				<ul>
					<li>文章数量: <span class="num">358</span></li>
					<li>标签数量: <span class="num">281</span></li>
					<li>附件数量: <span class="num">180</span></li>
					<li>今日访问: <span class="num">133</span></li>
					<li>总访问量: <span class="num">899,905</span></li>
				</ul>
			</div>
						<h1>友情链接</h1>
			<div class="left_content">
				<ul>
					<li><a href="http://www.4shell.org" target="_blank" title="关注网络安全">Chinadu`s Blog</a></li><li><a href="http://bingu.net" target="_blank" title="冰古的网络之旅">冰古`s Blog</a></li><li><a href="http://blog.hasnow.com" target="_blank" title="关注技术和电子商务">Leo's Blog</a></li><li><a href="http://dancewindy.blogbus.com" target="_blank" title="风小五的后山小屋">Windy's Blog</a></li><li><a href="http://www.liangkun.net" target="_blank" title="爱上梁坤，爱上你">梁坤的博客</a></li><li><a href="http://www.pr9blog.com" target="_blank" title="PR9's 博客">PR9`s Blog</a></li><li><a href="http://www.paintingcustom.com" target="_blank" title="Painting Custom">Painting Custom</a></li>				</ul>
				<div class="more"><a href="http://www.kevinick.com/links.html">更多...</a></div>
			</div>
						<h1>有空帮喂一下鱼</h1>
			<div>
				<embed width="195" height="330" 
				flashvars="up_numFish=6&amp;up_fishColor4=#FFFFFF&amp;up_backgroundColor=F6F6F6&amp;up_fishColor1=F4A61C&amp;up_fishColor7=F45540&amp;up_fishColor6=F45540&amp;up_fishColor8=F45540&amp;up_fishColor2=C4C4C4&amp;up_fishColor9=F45540&amp;up_fishColor3=#600000&amp;up_fishName=Fish&amp;up_fishColor5=F45540&amp;up_fishColor10=F45540&amp;up_backgroundImage=http://&amp;up_foodColor=FCB347&amp;" 
				bgcolor="F6F6F6" wmode="opaque" src="http://fishgadget.googlecode.com/svn/trunk/fish.swf" type="application/x-shockwave-flash" />
			</div>
			<h1><a href="http://tools.kvgo.net/">常用工具</a></h1>
			<div class="left_content">
				<ul>
					<li><a href="http://tools.kvgo.net/sfz.htm" target="_blank">身份证归属地查询</a></li>
					<li><a href="http://tools.kvgo.net/shouji.htm" target="_blank">手机号码归属地</a></li>
					<li><a href="http://www.domaintools.com/" target="_blank">域名查询工具</a></li>
					<li><a href="http://tools.kvgo.net/jscompressor.htm" target="_blank">JS代码在线压缩</a></li>
					<li><a href="http://tools.kvgo.net/css.htm" target="_blank">CSS在线编辑器</a></li>
					<li><a href="http://tools.kvgo.net/domainDel.htm" target="_blank">今日到期域名名单</a></li>
					<li><a href="http://ip.kvgo.net" target="_blank">IP地址查询工具</a></li>
					<li><a href="http://tools.kvgo.net/convtxt.htm" target="_blank">汉字简繁转换工具</a></li>
					<li><a href="http://tools.kvgo.net/pinyin.htm" target="_blank">汉字转换为拼音</a></li>
					<li><a href="http://tools.kvgo.net/utf8.htm" target="_blank">UTF8 代码转换工具</a></li>
				</ul>
				<div class="more"><a href="http://tools.kvgo.net/" target="_blank">更多...</a></div>
			</div>
			<h1>参考手册</h1>
			<div class="left_content">
				<ul>
					<li><a href="http://wiki.ubuntu.org.cn" target="_blank">Ubuntu.org.cn Wiki</a></li>
					<li><a href="http://examples.adobe.com/flex3/componentexplorer/explorer.html" target="_blank">Flex 3 Explorer</a></li>
					<li><a href="http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/" target="_blank">ActionScript 3.0 手册</a></li>
					<li><a href="http://lamp.linux.gov.cn/Apache/ApacheMenu/index.html" target="_blank">Apache 2.2 中文文档</a></li>
				</ul>
			</div>
			<h1>其它语言</h1>
			<div class="left_content center">
				<div id="google_translate_element"></div><script type="text/javascript">
				function googleTranslateElementInit() {
				  new google.translate.TranslateElement({
					pageLanguage: 'zh-CN',
					multilanguagePage: true,
					layout: google.translate.TranslateElement.InlineLayout.SIMPLE
				  }, 'google_translate_element');
				}
				</script>
				<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
			</div>
		</div>
		<div class="mainbox">
			<script type="text/javascript">
window.onload=function(){ 
	fiximage('500x500');
}
</script>
<div class="nav_title"><span>浏览模式: 标准 | <a href="http://www.kevinick.com/?viewmode=list">列表</a></span><strong><a href="http://www.kevinick.com/index.html">全部文章</a></strong></div>
		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/370.html">javascript 获取页面高度（多种浏览器）（转）</a><a name="370"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_370', 16);">大</a> <a href="javascript:;" onclick="setSize('content_370', 14);">中</a> <a href="javascript:;" onclick="setSize('content_370', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2012, January 29, 11:33 AM  <a href="http://www.kevinick.com/category/6.html">网络编程</a>
		</div><div class="content" id="content_370"><p>关于获取各种浏览器可见窗口大小的一点点研究<br />
<code>&lt;script type=&quot;text/javascript&quot;&gt;<br />
function getInfo()<br />
{<br />
&nbsp;&nbsp;&nbsp; var s = &quot;&quot;;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页可见区域宽：&quot;+ document.body.clientWidth;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页可见区域高：&quot;+ document.body.clientHeight;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页可见区域宽：&quot;+ document.body.offsetWidth + &quot; (包括边线和滚动条的宽)&quot;;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页可见区域高：&quot;+ document.body.offsetHeight + &quot; (包括边线的宽)&quot;;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页正文全文宽：&quot;+ document.body.scrollWidth;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页正文全文高：&quot;+ document.body.scrollHeight;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页被卷去的高(ff)：&quot;+ document.body.scrollTop;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页被卷去的高(ie)：&quot;+ document.documentElement.scrollTop;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页被卷去的左：&quot;+ document.body.scrollLeft;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页正文部分上：&quot;+ window.screenTop;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 网页正文部分左：&quot;+ window.screenLeft;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 屏幕分辨率的高：&quot;+ window.screen.height;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 屏幕分辨率的宽：&quot;+ window.screen.width;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 屏幕可用工作区高度：&quot;+ window.screen.availHeight;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 屏幕可用工作区宽度：&quot;+ window.screen.availWidth;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 你的屏幕设置是 &quot;+ window.screen.colorDepth +&quot; 位彩色&quot;;<br />
&nbsp;&nbsp;&nbsp; s += &quot; 你的屏幕设置 &quot;+ window.screen.deviceXDPI +&quot; 像素/英寸&quot;;<br />
&nbsp;&nbsp;&nbsp; //alert (s);<br />
}<br />
getInfo();<br />
&lt;/script&gt;</code>
在我本地测试当中：<br />
在IE、FireFox、Opera下都可以使用<br />
document.body.clientWidth<br />
document.body.clientHeight<br />
即可获得，很简单，很方便。<br />
而在公司项目当中：<br />
<strong>Opera仍然使用</strong><br />
<code>document.body.clientWidth<br />
document.body.clientHeight</code>
<strong>可是IE和FireFox则使用</strong><br />
<code>document.documentElement.clientWidth<br />
document.documentElement.clientHeight</code>
原来是W3C的标准在作怪啊<br />
<code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</code>
如果在页面中添加这行标记的话<br />
<strong>在IE中：</strong><br />
<code>document.body.clientWidth ==&gt; BODY对象宽度<br />
document.body.clientHeight ==&gt; BODY对象高度<br />
document.documentElement.clientWidth ==&gt; 可见区域宽度<br />
document.documentElement.clientHeight ==&gt; 可见区域高度</code>
<strong>在FireFox中：</strong><br />
<code>document.body.clientWidth ==&gt; BODY对象宽度<br />
document.body.clientHeight ==&gt; BODY对象高度<br />
document.documentElement.clientWidth ==&gt; 可见区域宽度<br />
document.documentElement.clientHeight ==&gt; 可见区域高度</code>
<strong>在Opera中：</strong><br />
<code>document.body.clientWidth ==&gt; 可见区域宽度<br />
document.body.clientHeight ==&gt; 可见区域高度<br />
document.documentElement.clientWidth ==&gt; 页面对象宽度（即BODY对象宽度加上Margin宽）<br />
document.documentElement.clientHeight ==&gt; 页面对象高度（即BODY对象高度加上Margin高）</code>
而如果没有定义W3C的标准，则<br />
<strong>IE为：</strong><br />
<code>document.documentElement.clientWidth ==&gt; 0<br />
document.documentElement.clientHeight ==&gt; 0</code>
<strong>FireFox为：</strong><br />
<code>document.documentElement.clientWidth ==&gt; 页面对象宽度（即BODY对象宽度加上Margin宽）document.documentElement.clientHeight ==&gt; </code>
页面对象高度（即BODY对象高度加上Margin高）<br />
<strong>Opera为：</strong><br />
<code>document.documentElement.clientWidth ==&gt; 页面对象宽度（即BODY对象宽度加上Margin宽）document.documentElement.clientHeight ==&gt; </code>
页面对象高度（即BODY对象高度加上Margin高）<br />
真是一件麻烦事情，其实就开发来看，宁可少一些对象和方法，不使用最新的标准要方便许多啊。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/javascript.html">javascript</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/370.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/370.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">1</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/369.html">QQ天气预报查询IP失效的解决方法</a><a name="369"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_369', 16);">大</a> <a href="javascript:;" onclick="setSize('content_369', 14);">中</a> <a href="javascript:;" onclick="setSize('content_369', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2012, January 12, 5:01 PM  <a href="http://www.kevinick.com/category/6.html">网络编程</a>
		</div><div class="content" id="content_369"><p>近来发现自己博客空间的天气预报总显示北京，且打开FIREBUG访问报错。</p>
<p>后来检测了一下，发现是http://fw.qq.com/ipaddress失效导致的，具体原因不详。</p>
<p>于是乎花了一点时间用<a href="http://ip.kvgo.net" target="_blank">http://ip.kvgo.net</a>写了个，访问地址如下（直接替换原来地址即可）</p>
<p><a href="http://ip.kvgo.net/?type=detail&amp;charset=gb2312" target="_blank"><code>http://ip.kvgo.net/?type=detail&amp;charset=gb2312</code></a></p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/qq.html">qq</a>, <a href="http://www.kevinick.com/tags/%25E5%25A4%25A9%25E6%25B0%2594%25E9%25A2%2584%25E6%258A%25A5.html">天气预报</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/369.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/369.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">35</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/368.html">很抱歉！当前提交订单用户过多，请您稍后重试。</a><a name="368"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_368', 16);">大</a> <a href="javascript:;" onclick="setSize('content_368', 14);">中</a> <a href="javascript:;" onclick="setSize('content_368', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2012, January 11, 11:14 AM  <a href="http://www.kevinick.com/category/4.html">杂柒乱吧</a>
		</div><div class="content" id="content_368"><p>　　在之前，刚听说铁道部推出的网络购票后，着实让我高兴了一阵子。可现在，却是最让人生气。要么不给登陆，要么登陆进去不买提交订单。我可是客户耶，这是我第一次网购提交订单失败。如果是其它购物网站，我了个去，不给登陆不买你的东西了。可这个，是垄断的，你不买就没地方买。</p>
<p>　　从1月6日订了几张1月16日的票后，从8号开始，就没成功下单过。声明下，我不是黄牛，票是给亲人订的。</p>
<p>　　说现在11号了，连续三天了，还没订上票，心急如焚。看到有余票，就是不给订。从早上六点到晚上十二点，每次都是提示&ldquo;很抱歉！当前提交订单用户过多，请您稍后重试。&rdquo;，多么温馨的一句话啊！我真怀疑，还有没有人能成功提交订单。</p>
<p>　　<strong>这里我说几点心里的感受和意见：</strong></p>
<ol>
    <li>网络平台推出太仓促，完全没预料到结果。</li>
    <li>登陆页没记住密码功能，浪费用户时间。</li>
    <li>给你登陆，但不给提交订单，这样不妥。</li>
    <li>余票查询跟订票查询数据不同，误导用户。</li>
    <li>框架页面用IE访问很不方便，且不兼容IE6。</li>
    <li>一些地方只前台验证，提交后台数据时不做二次验证。</li>
</ol>
<p>　　<strong>再提几点建议（</strong><strong>他们看到看不到就不管了</strong><strong>）</strong><strong>：</strong></p>
<ol>
    <li>请求数据时，只返回个结果就行了，每次都返回一堆垃圾代码。例如提交订单页，每次提交都要刷新页面，这个页面有近30KB的大小。按铁道部官方统计的，日均点击超十亿次，假设其中十分之一的有访问到提交订单页面，不算重复次数的话，也有2861.02GB的流量。何种服务器能负担这种压力？</li>
    <li>单单分时段出票根本不能解决网络堵塞的问题。他应该把这些按时段和地区分开的火车票，数据库放在不同的服务器上，以减缓访问压力。</li>
    <li>网络购票与电话、窗口票不用统一的数据库。只在最后订票并支付成功后，同步订票信息到统一数据库，以方便客户取票。同步数据也可以统一同步，例如同步周期为1个小时一次，相应的订票成功一小时后方可取票。后期根据量的大小，不同购票方式互相调整补充调剂一下。</li>
    <li>订单需成功方可扣款，可增加第三方支付。</li>
    <li>同时提交的订单过多，可以想办法设置成队列模式，批次处理订单。跟去银行办事一样，取号排队，发号码的时候告诉你前面有多少人。</li>
</ol>
<p>　　<strong>最后说几个这个系统的BUG和小窍门</strong></p>
<ol>
    <li>验证码名存实无。有人说用识别工具可以破解，让我说，根本不需要。打开登陆或订票页面，记录好最后看到的那个验证码字串，设置浏览器禁止载入图片，然后最后看到的那个验证码会一直有效。</li>
    <li>买不到票的朋友，可以试试在网上买&ldquo;联程&rdquo;火车票。例如我想订<strong> 深圳 </strong>到<strong> 北京</strong><strong>西 </strong>的K106次卧铺，没票。那么可以选择 <strong>深圳</strong>=&gt;<strong>南昌</strong>=&gt;<strong>北京西</strong>，同一时间同一车次。<strong>南昌</strong> 为<strong> 深圳</strong> 到 <strong>北京西 </strong>之间的任意停靠站。不过这里需要用到两个身份证号，这个你就自己想办法了，可以问周围朋友借。没准你订到的两张票会是同一铺位号的，我订到的就是这样的票。这利用了火车票会为中间站预留车票的机会。不一定可以成功，看你自己运气了。取票要带两个身份证，票价总额会比直达的稍微高些，但绝对低于黄牛票。</li>
</ol>
<p>　　<strong>总结：春节回家不买票，买票就买飞机票！</strong></p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/%25E6%2598%25A5%25E8%25BF%2590.html">春运</a>, <a href="http://www.kevinick.com/tags/%25E7%2581%25AB%25E8%25BD%25A6%25E7%25A5%25A8.html">火车票</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/368.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/368.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">221</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/367.html">解决Windows系统回收站无法清空的问题</a><a name="367"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_367', 16);">大</a> <a href="javascript:;" onclick="setSize('content_367', 14);">中</a> <a href="javascript:;" onclick="setSize('content_367', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 28, 9:07 AM  <a href="http://www.kevinick.com/category/8.html">系统应用</a>
		</div><div class="content" id="content_367"><p>　　在桌面回收站图标鼠标点右键，依次选择属性-&gt;全局-&gt;钩选&ldquo;删除时不将文件移入回收站，而是彻底删除&rdquo;-&gt;确定，然后去每个盘下面删除回收站，也就是盘符根目录下的RECYCLER文件夹，属性默认隐藏。</p>
<p>　　重启电脑，在桌面回收站图标鼠标点右键，再次选择属性-&gt;全局-&gt;去掉&ldquo;删除时不将文件移入回收站，而是彻底删除&rdquo;的对钩-&gt;确定。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/windows.html">windows</a>, <a href="http://www.kevinick.com/tags/%25E5%259B%259E%25E6%2594%25B6%25E7%25AB%2599.html">回收站</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/367.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/367.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">49</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/366.html">解决overlap on port 80, the first has precedence提示问题</a><a name="366"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_366', 16);">大</a> <a href="javascript:;" onclick="setSize('content_366', 14);">中</a> <a href="javascript:;" onclick="setSize('content_366', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 21, 1:27 PM  <a href="http://www.kevinick.com/category/8.html">系统应用</a>, <a href="http://www.kevinick.com/category/6.html">网络编程</a>
		</div><div class="content" id="content_366"><p><strong>[warn] _default_ VirtualHost overlap on port 80, the first has precedence</strong></p>
<p>这个，大概意思就是后面新增加的这个个VirtualHost 由于端口被占用，不能生效，沿用第一个虚拟主机的配置。</p>
<p>检查了一下，发现，原来在httpd.conf里，我没有把#NameVirtualHost *:80前的注释去掉，导致这个没有生效。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/apache.html">apache</a>, <a href="http://www.kevinick.com/tags/linux.html">linux</a>, <a href="http://www.kevinick.com/tags/vhost.html">vhost</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/366.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/366.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">48</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/365.html">Windows环境下路径超长文件的删除方法</a><a name="365"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_365', 16);">大</a> <a href="javascript:;" onclick="setSize('content_365', 14);">中</a> <a href="javascript:;" onclick="setSize('content_365', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 20, 6:30 PM  <a href="http://www.kevinick.com/category/8.html">系统应用</a>
		</div><div class="content" id="content_365"><p>我的问题：</p>
<p>用MyEclipes到入一个程序目录，向该工程目录导入工程，勾选了&ldquo;Copy&nbsp; projects into workspace&ldquo;，结果MyEclipse开始自己层层创建相同目录，不到1分钟见了1000多层目录。</p>
<p>我的妈呀，太刺激了，风驰电掣啊。</p>
<p>cmd命令 rd /s/q 目录名&nbsp;&nbsp;&nbsp; 不管用。</p>
<p>也无法改变当前目录状态为已删除，让系统认为其已经被删除，chkdsk磁盘即可清楚</p>
<p><font color="#ff0000">解决办法</font>：</p>
<p><a target="_blank" href="http://download.zol.com.cn/detail/10/91484.shtml">下载robocopy</a>，然后解压robocopy.exe（Windows 7系统自带robocopy，无需下载）</p>
<p>假如超长文件夹的路径是d:\test\abc\abc\abc.....</p>
<p>1.把robocopy.exe可以复制到d:\test</p>
<p>2.在d:\test下新建一个空的文件夹：go</p>
<p>3.开始键+R，输入cmd</p>
<p>4.更换盘符到d:\test</p>
<p>5.输入：Robocopy /MIR&nbsp;go abc</p>
<p>6.等待命令执行完（我大概等了半分钟，屏幕一直在滚动）</p>
<p>7.命令执行完成后，原来的超长文件夹abc就是个空的文件夹了，正常删除！</p>
<p>8.完成</p>
<p>文章出处：<a target="_blank" href="http://wzl3585493.blog.163.com/blog/static/7615611020106233247487/">http://wzl3585493.blog.163.com/blog/static/7615611020106233247487/</a></p>
<p>=======================转载结束======================</p>
<p><div class="attach"><a href="javascript:;"><img onclick="zoom(this, 'http://www.kevinick.com/attachments/date_201112/f577b4e2537e8813be81e2074464c099.jpg')" src="http://www.kevinick.com/attachments/date_201112/thumb_f577b4e2537e8813be81e2074464c099.jpg" border="0" alt="大小: 22.18 K&#13;尺寸: 500 x 130&#13;浏览: 0 次&#13;点击浏览全图" width="500" height="130" /></a></div></p>
<p>我的问题比这个严重的多，4880多层目录，清理这些历时半个多小时。建目录的这小子真TM变态。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/%25E8%25B6%2585%25E9%2595%25BF%25E8%25B7%25AF%25E5%25BE%2584.html">超长路径</a>, <a href="http://www.kevinick.com/tags/windows.html">windows</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/365.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/365.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">56</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/364.html">《猩球崛起》720p高清BT下载（带中文字幕）</a><a name="364"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_364', 16);">大</a> <a href="javascript:;" onclick="setSize('content_364', 14);">中</a> <a href="javascript:;" onclick="setSize('content_364', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 17, 8:58 AM  <a href="http://www.kevinick.com/category/10.html">影音娱乐</a>
		</div><div class="content" id="content_364"><p>《猩球崛起》很不错的一部电影，故事情节和特效都很攒，而且是我喜欢的科幻类型。</p>
<p>整部电影看下来很连贯很感人，并没预告片里那么暴力。</p>
<p>导演也相当厉害，主要演员只有两句台词：</p>
<ol>
    <li><strong>NO！</strong></li>
    <li><strong>Caesar&rsquo;s home！</strong></li>
</ol>
<p>强烈推荐大家下载观看！用迅雷或旋风都可以下载，离线下载很给力。</p>
<p>下面是720P和1080P两种格式，大小分别是5G和11G左右，压缩文件里附猩球崛起中文字幕。</p></div><div class="attach"><strong>附件1: </strong><a href="http://www.kevinick.com/attachment.php?id=222" target="_blank">Rise.of.the.Planet.of.the.Apes.2011.BluRay.720p.DTS.x264-CHD.7z</a> (42.09 K, 下载次数:28)</div><div class="attach"><strong>附件2: </strong><a href="http://www.kevinick.com/attachment.php?id=223" target="_blank">Rise.of.the.Planet.of.the.Apes.2011.BluRay.REPACK.1080p.DTS.2Audio.x264-CHD.7z</a> (74.3 K, 下载次数:27)</div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/%25E7%258C%25A9%25E7%2590%2583%25E5%25B4%259B%25E8%25B5%25B7.html">猩球崛起</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/364.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/364.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">57</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/363.html">mysql configure 参数</a><a name="363"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_363', 16);">大</a> <a href="javascript:;" onclick="setSize('content_363', 14);">中</a> <a href="javascript:;" onclick="setSize('content_363', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 15, 11:31 AM  <a href="http://www.kevinick.com/category/8.html">系统应用</a>, <a href="http://www.kevinick.com/category/6.html">网络编程</a>
		</div><div class="content" id="content_363"><p>mysql configure 参数</p>
<p>--prefix=/program/mysql&nbsp;&nbsp;&nbsp;&nbsp;  安装路径<br />
--localstatedir=/var/lib/mysql&nbsp;&nbsp;&nbsp;  数据库文件存放路径<br />
--with-comment=Source&nbsp;&nbsp;&nbsp;  <br />
--with-server-suffix=-Community <br />
--with-mysqld-user=mysql <br />
--without-debug <br />
--with-big-tables <br />
--with-charset=gbk  utf8<br />
--with-collation=gbk_chinese_ci&nbsp;&nbsp;  utf8_unicode_ci<br />
--with-extra-charsets=all <br />
--with-pthread <br />
--enable-static <br />
--enable-thread-safe-client <br />
--with-client-ldflags=-all-static <br />
--with-mysqld-ldflags=-all-static <br />
--enable-assembler <br />
--without-innodb <br />
--without-isam <br />
--without-ndb-debug<br />
--with-unix-socket-path=/home/mysql/tmp/mysql.sock</p>
<p>仅记录一下，不适用所有版本的MYSQL，自己试着看。至于都啥意思，自己去查吧。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/mysql.html">mysql</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/363.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/363.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">97</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/362.html">LINUX 怎样更改主机名</a><a name="362"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_362', 16);">大</a> <a href="javascript:;" onclick="setSize('content_362', 14);">中</a> <a href="javascript:;" onclick="setSize('content_362', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 10, 10:27 AM  <a href="http://www.kevinick.com/category/8.html">系统应用</a>
		</div><div class="content" id="content_362"><p>第一步：<br />
#hostname oratest</p>
<p>第二步：<br />
修改/etc/sysconfig/network中的hostname</p>
<p>第三步：<br />
修改/etc/hosts文件</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/linux.html">linux</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/362.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/362.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">63</font></div>		<h2 class="posttitle"> <a href="http://www.kevinick.com/blog/361.html">解决Resin4.0.24安装登陆Resin Admin显示403错误</a><a name="361"></a></h2>
		<div class="postdate">
			<div class="fontsize">字体：<a href="javascript:;" onclick="setSize('content_361', 16);">大</a> <a href="javascript:;" onclick="setSize('content_361', 14);">中</a> <a href="javascript:;" onclick="setSize('content_361', 12);">小</a></div>
			Submitted by <strong><u>kevinick</u></strong> on 2011, December 9, 6:29 PM  <a href="http://www.kevinick.com/category/6.html">网络编程</a>
		</div><div class="content" id="content_361"><p>找了半天没找到网络上传说中的resin.conf，最后我发现配置目录中有个resin.properties文件，打开一看就是配置文件。</p>
<p>修改下面部分配置即可</p>
<p><code>admin_external : true<br />
admin_insecure : true<br />
admin_enable : true</code></p>
<p>再次打开http://localhost:8080/resin-admin/就可以看到设置管理员账号密码的界面了。</p></div><div class="tags"><strong>Tags</strong>: <a href="http://www.kevinick.com/tags/resin.html">resin</a>, <a href="http://www.kevinick.com/tags/linux.html">linux</a></div><div class="postmetadata"><a href="http://www.kevinick.com/blog/361.html#comment">评论</a>:<font color="#CC0000">0</font> | <a href="http://www.kevinick.com/blog/361.html#trackbacks">引用</a>:<font color="#CC0000">0</font> | 浏览: <font color="#CC0000">65</font></div><div class="p_bar"><span class="p_info">Records:358</span><span class="p_curpage">1</span><a href="http://www.kevinick.com/index/2.html" class="p_num">2</a><a href="http://www.kevinick.com/index/3.html" class="p_num">3</a><a href="http://www.kevinick.com/index/4.html" class="p_num">4</a><a href="http://www.kevinick.com/index/5.html" class="p_num">5</a><a href="http://www.kevinick.com/index/6.html" class="p_num">6</a><a href="http://www.kevinick.com/index/7.html" class="p_num">7</a><a href="http://www.kevinick.com/index/8.html" class="p_num">8</a><a href="http://www.kevinick.com/index/9.html" class="p_num">9</a><a href="http://www.kevinick.com/index/10.html" class="p_num">10</a><a href="http://www.kevinick.com/index/2.html" class="p_redirect">&#8250;</a><a href="http://www.kevinick.com/index/36.html" class="p_redirect">&raquo;</a></div>		</div>
	</div>
		<div id="footer">
		<div class="copyright">
						<br />Copyright&copy;2009-2011 <a href="http://www.kevinick.com/">凯文尼克的博客</a>
			<a href="http://www.kevinick.com/clearcookies.html">清除痕迹</a> Powered by <a href="http://www.kvgo.net" target="_blank" title="科维高网络">KvGo.Net</a> 
						<a href="http://www.miibeian.gov.cn/" target="_blank" rel="noflow" style="font-size:12px">粤ICP备09164498号</a>
						<script src="http://s6.cnzz.com/stat.php?id=1681425&web_id=1681425" language="JavaScript"></script>
			<br />
			本站采用创作共用版权协议，要求署名、非商业用途和保持一致。转载本站内容必须也遵循“<a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.zh" target="_blank">署名-非商业用途-保持一致</a>”的创作共用协议。
		</div>
	</div>
</div>
</body>
</html>
