词条 | .do |
释义 | .do是一种网页后台程序,*.jsp或者struts的组件文件*.do ,它不是一个文件,并没有一个真正的.do文件存在。 .do由来及其注意事项(.do的由来 使用.do要注意的事项) Doing与to do在动词中的具体应用(stop doing/to do forget doing/to do remember doing/todo regret doing/to do cease doing/to do try doing/to do go on doing/to do be afraid doing/todo be interested doing/to do mean to doing/todo begin(start) doing/to do 感官动词 + doing/to do) 简介它不能用编辑器(如记事本)直接打开。但是在编程的过程中后缀名的选择并没有特殊的限制,多数为编程人员为了使网站极具个性化或者隐藏正确的网页而自发使用一些后缀名网页,如今多数为Spring的组件中使用,这也成了大部分编程人员的习惯。 .do由来及其注意事项.do的由来使用一个特殊的servlet作为“交换机”,将来自web浏览器的请求转到相应的serverpage。在开发web应用时有一个必须要写的部署描述文件(web-inf/web.xml)。 这个文件描述了你的web应用的配置,包括欢迎页面(welcome pages)(当请求没有指定时,出现在目录下的文件)、servlet(路径或者扩展名)和那些servlets的参数的映射。在这个文件中,你配置struts actionservlet作为一个操控所有指定映射(通常以.do为扩展名)请求的servlet——这就是“交换机”。 使用.do要注意的事项通俗的说:.do是一个映射,它可以是html文件、jsp文件或者其他文件的映射,可以是一个也可以是多个。这样会导致如下情况:有时候一个.do 包含了好几个.jsp,同一个url可能因操作和状态不同而出现不同的界面。所以在使用时应该考虑到这点。 do循环语句C语言中一般与while合用,它的一般形式为: do { <循环体语句> }while(<条件表达式>); 这里的while后面是有一个分号的,如果缺少了这个分号,则会导致错误。 先运行后判断条件,循环体至少会运行一次。当符合判断语句后继续循环,否则退出。 要注意与while 语句的区分。 在这里要注意,如果用while(<条件表达式>);,循环体是空语句. Visual Basic中循环语句,与Loop连用,形如 : do[while][until] loop[while][until] Doing与to do在动词中的具体应用stop doing/to dostopto do 停止,中断做某事后去做另一件事,stop doing 停止做某事。例如: They stop to smoke acigarette. 他们停下来,抽了根烟。 I must stop smoking. 我必须戒烟了。 典型例题 She reached the top of thehill and stopped ___ on a big rock by the sideof the path. A. to have rested B. resting C. to rest D. rest forget doing/to doforget to do 忘记要去做某事,forget doing 忘记做过某事。例如: The light in the office isstill on. He forgot to turn it off. 办公室的灯还在亮着,他忘记关了。(没有做关灯的动作) He forgot turning the lightoff. 他忘记他已经关了灯了。(已做过关灯的动作) 典型例题 ---- The light in theoffice is still on. ---- Oh,I forgot___. A. turning it off B. turn it off C. to turn it off D. having turned it off remember doing/todoremember to do 记得去做某事,remember doing 记得做过某事。例如: Remember to go to the post office after school. 记着放学后去趟邮局。 Don\\'t you remember seeing the man before? 你不记得以前见过那个人吗? regret doing/to doregret to do 对将要做的事遗憾,regret doing 对做过的事遗憾、后悔。例如: I regret to have to dothis, but I have no choice. 我很遗憾必须这样去做,我实在没有办法。 I don\\'t regret telling herwhat I thought. 我不为告诉她我的想法而后悔。 典型例题 ---You were brave enough to raise objections at the meeting. ---Well, now I regret ___ that. A. to do B. to be doing C. to have done D. having done cease doing/to docease to do 长时间,甚至永远停做某事,cease doing 短时停止做某事,以后还会接着做。例如: That department has ceasedto exist forever. 那个系已不复存在。 The girls ceased chattingfor a moment when their teacher passed by. 姑娘们在老师走过时,停了会聊天。 try doing/to dotry to do 努力,企图做某事,try doing 试验,试着做某事。例如: You must try to be more careful. 你可要多加小心。 I tried gardening butdidn\\'t succeed. 我试着种果木花卉,但未成功。 go on doing/to dogo on to do 做了一件事后,接着做另一件事,go on doing 继续做原来做的事。例如: After he had finished hismaths,he went on to do hisphysics. 做完数学后,他接着去做物理。 Go on doing the otherexercise after you have finished this one. 作完这个练习后,接着做其他的练习 be afraid doing/todobe afraid to do 不敢,胆怯去做某事,是主观上的原因不去做,意为\\"怕\\",be afraid of doing 担心出现doing的状况、结果。doing 是客观上造成的,意为\\"生怕,恐怕\\"。She was afraid to step further in grass because shewas afraid of being bitten by a snake. 她生怕被蛇咬着,不敢在草丛中再走一步。 She was afraid to wake her husband. 她不敢去叫醒她丈夫。 She was afraid of waking her husband. 她生怕吵醒她丈夫。 be interested doing/to dobe interested to do 对做某事感兴趣,想了解某事,be interested in doing 对某种想法感兴趣,doing 通常为想法。例如: I shall be interested to know what happens. 我很想知道发生了什么事。(想了解) I\\'m interested in working in Switzerland. Do you have any idea about that? 我对在瑞士工作感兴趣。你想过这事吗? (一种想法) mean to doing/todomean to do 打算、想,mean doing 意味着。例如: I mean to go, but my father would not allow me to. 我想去,但是我父亲不肯让我去。 To raise wage means increasing purchasing power. 增加工资意味着增加购买力。 begin(start) doing/to dobegin / start to do sth/begin / start doing sth. 1)谈及一项长期活动或开始一种习惯时,使用doing。例如: How old were you when you first started playing the piano? 你几岁时开始弹钢琴? 2)begin, start用进行时时,后面动词用不定式to do。例如: I was beginning to get angry。我开始生起气来。 3)在attempt, intend, begin,start 后接know, understand, realize这类动词时,常用不定式to do。例如: I begin to understand the truth。我开始明白真相 4)事物作主语时。例如: The snow began to melt.雪开始融化了 感官动词 + doing/to do感官动词see, watch, observe, notice, look at,hear, listen to, smell, taste, feel + do表示动作的完整性,+doing表示动作的进行性。例如: I saw him work in the garden yesterday. 昨天我看见他在花园里干活了。(强调\\"我看见了\\"这个事实) I saw him working in the garden yesterday.(强调\\"我见他正干活\\"这个动作)昨天我见他正在花园里干活。 典型例题 1)They knew her very well.They had seen her ___ up from childhood. A. grow B. grew C. was growing D. to grow 2)The missing boy was last seen ___ near the river. A. playing B. to be playing C. play D. to play 8.1答案:C。由题意可知,她到了山顶,停下来在一个路边的大石头上休息。因此,应选择\\"stop to do sth. 停下来去做另一件事\\"。而不仅仅是爬山动作的终止,所以stop doing sth.不正确。8.2答案:C。由thelight is still on 可知灯亮着,即关灯的动作没有发生,因此用forget to do sth.而forget doing sth表示灯已经关上了,而忘记了这一事实。此处不符合题意。8.4答案:D。regret having done sth. 对已发生的事感到遗憾。regret to do sth. 对将要做的事感到遗憾。本题为对已说的话感到后悔,因此选D。8.12(1)答案:A。因题意为,他们看着她长大,因此强调的是成长的过程,而非正在长的动作,因此用see sb do sth 的句型。 8.12(2)答案A. 本题强调其动作,正在河边玩,应此用see sb. doing sth句型。 want to do sth.意思是想要做某事.所以弄清意思就很容易做了.比如I want to do my homework.我打算做作业. I want to give my mother a suprise.我想给妈妈一个惊喜. John want to go shopping after work |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。