当前位置:文档之家› ASP_NET_MVC3中文版教程

ASP_NET_MVC3中文版教程

https://www.doczj.com/doc/8f10439980.html, MVC3 快速入门

第一节概述

1.1本教程的学习内容

在本教程中,你将学会如下内容:

?如何创建一个https://www.doczj.com/doc/8f10439980.html, MVC的工程。

?如何创建https://www.doczj.com/doc/8f10439980.html, MVC的控制器(controller)与视图(view)。

?如何使用Entity Framework code-first 范例来创建一个新的数据库。

?如何获取和显示数据。

?如何编辑数据并且进行数据的有效性验证。

1.2创建工程

如果要创建一个https://www.doczj.com/doc/8f10439980.html, MVC3的工程时,首先运行Visual Web Developer 2010 Express,并且在起始页(start page)中选择“新建项目”。

Visual Web Developer是一个集成开发环境,你可以使用它来进行各种应用程序的开发。在Visual Web Developer的菜单的下面有一个工具条,可以直接点击工具条中的各个工具按钮来进行各种操作,也可以直接点击菜单中的各个菜单项来进行各种操作,此处我们点击“文件”菜单中的“新建项目”菜单项。

图1-1Visual Web Developer 2010 Express中的起始页

1.3 创建你的第一个应用程序

你可以使用Visual Basic 或Visual C#作为开发语言来创建应用程序。在本教程中,选择C#来作为开发语言。点击“新建项目”菜单项后,在打开的“新建项目”对话框中,双击左边的“Visual C#”使其成为展开状态,然后点击“Web”,点击右边的“https://www.doczj.com/doc/8f10439980.html, MVC 3 Web 应用程序”,然后在下方的名称文本框中填入应用程序的名称,在本教程中命名为“MvcMovie”,然后点击确定按钮。

图1-2在新建项目对话框中选择https://www.doczj.com/doc/8f10439980.html, MVC3应用程序并为应用程序命名在接下来打开的“新https://www.doczj.com/doc/8f10439980.html, MVC 3 项目”对话框中,点击选中“Internet 应用程序”,在“视图引擎”下拉框中保持默认的“Razor”选项不作修改(Razor视图是https://www.doczj.com/doc/8f10439980.html, MVC3种新增的一种十分重要的视图类型,使用它可以使得Web应用程序的开发变得更加方便快捷,在后文中将对此进行详细介绍)。

图1-3选择项目模板与视图引擎

点击确定按钮,Visual Web Developer会为你所创建的https://www.doczj.com/doc/8f10439980.html, MVC项目提供一个默认模板,这样的话你就拥有了一个可以立刻运行的应用程序。默认的模板中提供的是一个很简单的显示“欢迎使用https://www.doczj.com/doc/8f10439980.html, MVC!”文字的应用程序,你可以以此作为你的开发起点。

图1-4Visual Web Developer提供了一个默认的应用程序模板点击“调试”菜单中的“启动调试”菜单项(该菜单项的快捷键为F5),Visual Web Developer将启动一个内置的服务器,并且在该服务器中打开当前Web应用程序的主页,如图1-5所示。

图1-5 https://www.doczj.com/doc/8f10439980.html, MVC3的默认应用程序模板的调试画面

请注意该页面在浏览器中的地址为“http://localhost:4423/”。其中“localhost”代表了本机上你刚刚创建的Web应用程序的临时网站地址,4423代表了Visual Web Developer使用的一个随机端口,每次调试的时候,Visual Web Developer都会使用这个端口来作为内置服务器的端口号。在各计算机上,该端口号都是不相同的,因为该端口号是Visual Web Developer随机选择的。

在这个模板应用程序的页面的右上角,提供了两个按钮与一个“登录”链接,点击“登录”链接,页面跳转到登录页面,点击“主页”按钮,页面返回到主页,点击“关于”按钮,页面跳转到“关于”页面。

接下来,让我们开始逐步将这个默认的应用程序修改为我们所要的应用程序,在这个过程中逐步了解https://www.doczj.com/doc/8f10439980.html, MVC 3的有关知识。首先,让我们关闭浏览器并开始代码的修改工作。

第二节添加一个控制器

MVC的全称为model-view-controller(模型-视图-控制器)。MVC是一种开发应用程序的模式,这个模式已经具有了很好的框架架构,并且十分容易维护。使用MVC开发出来的应用程序一般包括以下几块内容:

●控制器(Controller):控制器类处理客户端向Web应用程序发出的请求,获取数据,

并指定返回给客户端,用来显示处理结果的视图。

●模型(Model):模型类代表了应用程序的数据,这些数据通常具有一个数据验证

逻辑,用来使得这些数据必须符合业务逻辑。

●视图(View):视图类是Web应用程序中用来生成并显示HTML格式的服务器端对客

户端请求的响应结果的模板文件。

在本教程中,将全面介绍这些概念,并且向你展示如何利用它们来搭建一个应用程序。

首先,让我们来创建一个控制器(controller)类。在解决方案资源管理器中,鼠标右击Controllers文件夹,并且点击添加->控制器,如图2-1所示。

图2-1 添加控制器

在弹出的“添加控制器”对话框中,将控制器命名为“HelloWorldController”,然后点击添加按钮,如图2-2所示。

图2-2 命名控制器

观察解决方案资源管理器中新增加了一个文件,名字为HelloWorldController.cs,并且该文件呈打开状态,如图2-3所示。

图2-3 控制器代码

修改打开的HelloWorldController.cs文件,在HelloWorldController类中,创建如代码清单2-1中所示的两个方法,控制器将返回一个HTML格式的字符串。

代码2-1 控制器中创建方法

public class HelloWorldController : Controller

{

//

// GET: /HelloWorld/

public string Index()

{

return "这是我的默认action...";

}

//

// GET: /HelloWorld/Welcome/

public string WelCome()

{

return "这是我的Welcome方法...";

}

}

在这个修改后的HelloWorldController控制器中,第一个方法名为Index。现在让我们从浏览器中调用该方法。运行应用程序(按F5键或Ctrl+F5键),在打开的浏览器中的地址栏后面,添加“HelloWorld”路径(譬如,在我的计算机上,浏览器中地址为

http://localhost:4423/HelloWorld),画面显示如图2-4所示。由于在Index方法中,直接返回了一个HTML格式的字符串,所以在浏览器中将该字符串显示出来。

图2-4 HelloWorldController控制器中Index方法的运行结果在https://www.doczj.com/doc/8f10439980.html, MVC中,可以根据浏览器中的输入地址来调用不同的控制器或控制七种不同的方法。https://www.doczj.com/doc/8f10439980.html, MVC的默认的映射逻辑使用如下所示的格式来决定应该调用什么控制器或控制器中的什么方法。

/[Controller]/[ActionName]/[Parameters]

URL地址的第一部分决定调用哪个控制器类,所以“/HelloWorld”映射到HelloWorldController控制器类。第二部分决定调用控制器中的哪个方法。所以

“/HelloWorld/Index”将会调用HelloWorldController控制器类的Index方法。由于Index方法是控制器类的默认方法(可以另外指定控制器类的默认方法),所以也可只输入“/HelloWorld”来调用该方法。

在浏览器的地址栏中,输入“http://localhost:xxxx/HelloWorld/Welcome”,将会调用HelloWorldController控制器类的Welcome方法,该方法返回“这是我的Welcome方法...”文字,所以浏览器中显示该文字,如图2-5所示。

图2-5 HelloWorldController控制器中Welcome方法的运行结果接下来,让我们修改Welcome方法,以便在URL地址栏中可以传递一些参数给该方法(例如:/HelloWorld/Welcome?name=Scott&numtimes=4)。修改后的代码如下所示。注意这里我们使用了C#的可选参数,当URL地址中没有使用numtimes参数时,该参数被默认设定为1。

public string Welcome(string name, int numTimes=1)

{

return HttpUtility.HtmlEncode("Hello " + name + ",NumTimes is:" + numTimes);

}

运行该应用程序,在浏览器中输入“http://localhost:xxxx/HelloWorld/Welcome?

name=Scott&numtimes=4”,运行结果显示如图2-6所示。浏览器自动将URL地址栏中的参数映射成Welcome方法中的传入参数。

图2-6 在Welcome方法中使用参数

到现在为止,我们展示了MVC中的“VC”(视图与控制器)部分的工作机制,控制器返回HTML字符串。很显然大多数情况下你不想让控制器直接返回HTML字符串,因为那样的话编码起来就太麻烦了。所以我们需要使用不同的视图模板文件来帮助生成HTML 格式的页面文件,在下一节中让我们来看一下如何在https://www.doczj.com/doc/8f10439980.html, MVC3中使用视图。

第三节添加一个视图

3.1 添加一个视图

在本节中我们修改HelloWorldController类,以便使用视图来向客户端展示HTML格式的响应结果。

我们使用https://www.doczj.com/doc/8f10439980.html, MVC3中新增的Razor视图引擎来创建视图。Razor视图模板文件的后缀名为.cshtml,它提供了一种简洁的方式来创建HTML输出流。Razor视图大大减少了在书写视图模板文件时所需要输入的字符,提供了一个最快捷,最简便的编码方式。

这里,我们在HelloWorldController类的Index方法中添加使用一个视图。在修改前的Index方法中返回一个字符串,我们修改这个方法来使它返回一个视图,代码如下所示。

public ActionResult Index()

{

return View();

}

这段代码表示Index方法使用一个视图模板来在浏览器中生成HTML格式的页面文件。接着,让我们来添加一个Index方法所使用的视图模板。在Index方法中点击鼠标右键,然后点击“添加视图”,将会弹出一个“添加视图”对话框。

图3-1 添加视图

图3-2添加视图对话框

在该对话框中,不做任何修改,直接点击添加按钮,观察解决方案资源管理器中,在MvcMovie项目下的Views文件夹下创建了一个HelloWorld文件夹,并且在该文件夹中创建了一个Index.cshtml文件,同时该文件呈打开状态,如图3-3所示。

图3-3视图模板文件被创建并呈打开状态

让我们在该文件中追加一些文字,代码如代码清单3-1所示。

代码3-1 Index.cshtml视图模板文件

@{

ViewBag.Title = "首页";

}

首页

这是我的第一个视图模板

运行应用程序,输入地址“http://localhost:xxxx/HelloWorld”。由于在Index方法中并没有做任何事情,只是简单地一行代码“return View()”,该行代码表示我们使用一个视图模板文件来在浏览器中展示响应结果。因为我们并没有显式指定使用哪个视图模板文件,所以使用了默认的Views文件夹下的HelloWorld文件夹下的Index.cshtml视图模板文件。该视图模板文件中只有简单的两行文字,在浏览器中的显示结果如图3-4所示。

图3-4在浏览器中显示视图

看上去还不错,但是请注意,该网页的标题为“首页”,但是网页中的大标题文字却为“我的MVC应用程序”,需要修改一下。

3.2 修改视图--修改应用程序的页面布局

首先,让我们修改页面大标题中的“我的MVC应用程序”文字。这段文字是所有页面中的公共大标题,在这个应用程序中,虽然所有页面中都显示了这个共同的大标题,但只有一处地方对其进行了设置。打开解决方案资源管理器中Views文件夹下的Shared文件夹下的_Layout.cshtml文件。该文件被称为布局页面,位于公有文件夹Shared下,被所有其他网页所共用。

图3-5公有布局页面

布局模板页允许你统一在一个地方指定整个Web应用程序或Web网站的所有HTML 页面的布局方法。请注意文件底部的“@RenderBody()”代码行。@RenderBody()是一个占位符,代表了所有你创建出来的实际应用的视图页面,在这里统一指定。将布局模板文件中的“我的MVC 应用程序”修改为“我的MVCMovie 应用程序”。代码如下所示。

我的MVCMovie应用程序

运行应用程序,注意网页中的大标题被修改为“我的MVCMovie 应用程序”。点击“关于”链接,你可以看见“关于”页面中的大标题也被修改为“我的MVCMovie 应用程序”。由

此可以看出一旦修改了布局页面中的某处地方,该修改将会被应用到所有页面中。

图3-6 在布局页面中修改了网页中显示的大标题

完整的_Layout.cshtml文件中的代码如代码清单3-2所示。

代码清单3-2 _Layout.cshtml文件中的完整代码

@ViewBag.Title

type="text/css" />

@RenderBody()

现在,让我们修改Index视图页面的标题。

打开Views文件夹下的HelloWorld文件夹下的Index.cshtml文件。这里我们修改两处地方:首先,修改浏览器中的标题,然后修改

标签中的小标题文字。修改后代码如代码清单3-3所示。

代码清单3-3 修改后的Index.cshtml视图模板文件

@{

ViewBag.Title = "电影清单";

}

我的电影清单

这是我的第一个视图模板

ViewBag对象的Title属性代表了显示该页面时的浏览器中的标题文字。让我们回头看一下布局模板文件,在该文件的区段中的标签中使用了这个值来作为浏览器中的网页标题。同时,通过这种方法,你可以很容易地在你的视图模板文件与布局模板文件之间进行参数的传递。</p><p>运行应用程序,在地址栏中输入“http://localhost:xxxx/HelloWorld”,注意浏览器中的网页标题,页面中的小标题文字都变为修改后的标题文字(如果没有发生变化的话,则可能你的网页被缓存住了,可以按Ctrl+F5键来在重新刷新页面时取消缓存)。</p><p>同时也请注意_Layout.cshtml文件中的占位符中的内容被替换成了Index.cshtml视图模板中的内容,所以浏览器中展示的是一个单一的HTML文件。浏览器中的运行结果如图3-7所示。</p><!--/p13--><!--p14--><p>图3-7 修改了标题后的Index视图模板文件</p><p>此处,我们的数据(“这是我的第一个视图模板”文字)是被直接书写在文件中的,也就是说我们使用到了MVC应用程序的“V”(视图View)与“C”(控制器Controller)。接下来,我们讲解一下如何创建一个数据库并从该数据库中获取模型数据。</p><p>3.3 将控制器中的数据传递给视图</p><p>在我们使用数据库并介绍模型之前,首先我们介绍一下如何将控制器中的信息传递给视图。浏览器接收到一个URL请求后,将会调用控制器类来进行响应。你可以在控制器类中进行对接收到的页面参数进行处理的代码,你可以在控制器类中书写从数据库中获取数据的代码,你也可以在控制器类中书写代码来决定返回给客户端什么格式的响应文件。控制器可以利用视图模板文件来生成HTML格式的响应文件并显示在浏览器中。</p><p>控制器类负责提供视图模板文件在生成HTML格式的响应文件时所需要的任何数据或对象。一个视图模板文件不应该执行任何业务逻辑,也不应该直接和数据库进行交互。它只能和控制器类进行交互,获取控制器类所提供给它的数据,这样可以使你的代码更加清晰,容易维护。</p><p>现在在我们的应用程序中,HelloWorldController控制器类中的Welcome方法带有两个参数—name与numTimes,Welcome方法直接向浏览器输出这两个参数的参数值。这里,我们修改该方法使其不再直接输出数据,而是使用一个视图模板。该视图模板将生成一个动态的响应流,这意味着我们需要将数据从控制器类传递给视图以便利用该数据来生成该响应流。我们在该控制器类中将视图模板所需要的数据送入一个ViewBag对象中,该对象可以被视图模板直接接收。</p><p>打开HelloWorldController.cs文件,修改Welcome方法,在该方法中为ViewBag对象添加一个Message属性与NumTimes属性,并且将属性值分别设定为经过处理后的name参数值与numTimes参数值。ViewBag对象是一个动态对象,你可以为它添加任何属性并赋上属性值。在未赋值之前该属性是不生效的,直到你赋值为止。修改后的HelloWorldController.cs 文件中的代码如代码清单3-4所示。</p><!--/p14--><!--p15--><p>代码清单3-4 修改后的HelloWorldController.cs文件using System.Web;</p><p>using System.Web.Mvc;</p><p>namespace MvcMovie.Controllers</p><p>{</p><p>public class HelloWorldController : Controller</p><p>{</p><p>//</p><p>// GET: /HelloWorld/</p><p>public ActionResult Index()</p><p>{</p><p>return View();</p><p>}</p><p>//</p><p>// GET: /HelloWorld/Welcome/</p><p>public ActionResult Welcome(string name, int numTimes = 1)</p><p>{</p><p>ViewBag.Message = "Hello " + name;</p><p>ViewBag.NumTimes = numTimes;</p><p>return View();</p><p>}</p><p>}</p><p>}</p><p>现在ViewBag对象中已经包含了数据,它将被自动传递给视图。</p><p>接下来,我们需要创建一个Welcome视图模板。在“调试”菜单中,点击“生成MvcMovie”将应用程序进行编译,如图3-8所示。</p><p>图3-8编译应用程序</p><p>接下来,在Welcome方法中点击鼠标右键,然后点击“添加视图”,弹出对话框如图3-9所示。</p><!--/p15--><!--p16--><p>图3-9 为Welcome方法添加视图</p><p>在该对话框中不做任何修改,直接点击添加按钮, View文件夹下的HelloWorld文件夹中自动被创建了一个Welcome.cshtml文件,打开该文件,在<h2>元素下添加代码,让浏览器显示URL地址中传入的name参数中设定的文字,显示次数等于URL地址中传入的numTimes 参数中设定的次数。修改后的Welcome.cshtml文件中的代码如代码清单3-5所示。</p><p>代码清单3-5 修改后的Welcome.cshtml文件</p><p>@{</p><p>ViewBag.Title = "Welcome";</p><p>}</p><p><h2>Welcome</h2></p><p><ul></p><p>@for (int i = 0; i < ViewBag.NumTimes; i++)</p><p>{</p><p><li>@ViewBag.Message</li></p><p>}</p><p></ul></p><p>运行应用程序,并且在地址栏中输入“http://localhost:xx/HelloWorld/Welcome?name= Scott&numtimes=4”,该地址栏中的页面参数将会自动传递给控制器。控制器将会把这些参数值放入ViewBag对象中并且传递给视图。视图再在浏览器中显示这些数据。</p><!--/p16--><!--p17--><p>图3-10 视图中显示从控制器类中传递过来的数据</p><p>这里,我们使用了模型“M”的一种方式,但是不是数据库的方式。在下一节中,我们将创建一个数据库,并且介绍如何对该数据库中的数据进行处理。</p><p>第四节添加一个模型</p><p>在本节中我们将追加一些类来管理数据库中的电影。这些类将成为我们的MVC应用程序中的“模型”部分。</p><p>我们将使用一个.NET Framework的被称之为“Entity Framework”的数据访问技术来定义这些模型类,并使用这些类来进行操作。Entity Framework(通常被简称为“EF”)支持一个被称之为“code-first”的开发范例。Code-first允许你通过书写一些简单的类来创建模型对象。你可以通过访问这些类的方式来访问数据库,这是一种非常方便快捷的开发模式。</p><p>4.1 利用NuGet来安装EFCodeFirst</p><p>我们可以利用NuGet包管理器(安装https://www.doczj.com/doc/8f10439980.html, MVC3时会自动安装)来把EFCodeFirst 类库添加到我们的MvcMovie工程中。这个类库使得我们可以直接使用code-first。点击“工具”菜单下的“Library Package Manager”子菜单下的“Add Library Package Reference”菜单选项,</p><p>如图4-1所示。</p><!--/p17--><!--p18--><p>图4-1 使用NuGet包管理器</p><p>点击“Add Library Package Reference”菜单选项后,将会弹出一个对话框,标题为“Add Library Package Reference”,如图4-2所示。</p><p>图4-2“Add Library Package Reference”对话框</p><p>默认状态下,左边的“All”选项处于选择状态。因为还没有安装任何包,所以右边面板中显示“找不到任何项”。点击左边面板中的“online”选项,NuGet包管理器将会在服务器上检索所有当前能够获取的包,如图4-3所示。</p><!--/p18--><!--p19--><p>图4-3 NuGet包管理器正在检索包信息</p><p>服务器上有几百个当前能够获取的包,现在我们只关注EFCodeFirst包。在右上角的搜索输入框中输入“EFCode”。在检索结果中,选择EFCodeFirst包,并且点击Install按钮安装包,如图4-4所示。</p><p>图4-4 选择EFCodeFirst包并安装</p><p>点击了install按钮后,会弹出一个接受许可证窗口,如图4-5所示,在这个窗口中必须要点击“I Accept”按钮,接受许可证条款,安装才能继续进行。</p><!--/p19--><!--p20--><p>图4-5 接受许可证窗口</p><p>安装完毕后,点击close按钮。我们的MvcMovie工程中会自动加载EntityFramework程序集,其中包含了EFCodeFirst类库。</p><p>图4-6安装完毕后EntityFramework程序集被自动加载</p><p>4.2 添加模型类</p><p>在解决方案资源管理器中,鼠标右击Models文件夹,点击“添加”菜单下的“类”,如图4-7所示。</p><!--/p20--><!--rset--><h2>英语教学法教程教案(王蔷)</h2><p>英语教学法教程教案 A Course in English Language Teaching 主讲:姚向礼 教材:《英语教学法教程》 主编:王蔷 出版社:高等教育出版社 绪论外语教学法主要流派 Teaching approaches & Methods Approaches & methods of Language Teaching 众说纷纭,现以学习理论作为分类标准,将学派分为认知性的,连接性的和综合性的三大类。并简介翻译教学法,自然教学法,直接教学法,认知教学法,功能教学法,在这之前首先概述一下拉丁语教学法、。 ①拉丁语教学法,指(15-16世纪)为欧洲语言的极盛时期,学校里教授作为外语之拉丁语的直觉模仿法。它在(15——16世纪)为语法模仿法:16世纪末到17世</p><p>纪,由于民族语渗入学校,拉丁语教学法主要为词汇模仿法。先后提出了自觉性原则和直观性原则。这一时期的两大代表人物①惜提哈(ratch1571-163500))②夸美纽斯教学法Conienius(1592_1670) ①德国论点是通过经验与分析去学习一切。认为只从理论途径得到的记忆才是可 靠的。词汇翻译法,自觉对比法,认真教学法。 二、联结性的教学法学派 特点:经验主义的哲学观点;重视外语话语与实物,观念,概念等外部世界与思维的直接联系;侧重口头操练。 自然教学法(绝对排斥本族语的教学法) 直接教学法(自然教学法发展起来的)(一种习惯) 听说教学法 视听教学法 功能教学法(又名意念法,交际法或意念——功能—交际法 三、综合性的教学法学派,来源于直接法与翻译的综合 自觉实践法 折衷法(又是极端) 分阶段教学法 一、语法翻译法(Translation Method) The grammar translation Method(Reading Method ,classical Method ).In China, it is called old method and is probably the most widely known and has been the most widely used of all approaches to language teaching .Although there have been many developments in language teaching, especially in the teaching foreign language ,grammar-translation method in still used today in various forms .And the main drill in translation. The mains features are as the followings. 1.Classes are taught in the mother tongue,with little active use of the target lauguage. 2.Much vocabulary is taught in the form of lists of isofated words. 3.Long elaborate explanations of the intricacies of grammar are given. 4.Little attention explanations of the intricacies of grammar are given. 5.Often the only drills are exercises in translation disconnecfecl sentences from the target language into the mother tongue. 6.little or no attention is given to pronunciation. 希腊文、拉丁文、通过翻译来学习外语。 认为背诵文法规则是学习外语的捷径,使用的课本,开始是孤立的单词和孤立的语法例句,都是从希腊文和拉丁文的名著里摘引出来的。 Advontedges: 1.在外语教学里创建了翻译的教学形式; 2.在外语教学里利用文法、利用学生的理解力,以提高外语教学的效果; 3.着重阅读,着重学习原文或原文文学名著; 4.使用方便。只要教师掌握了外语的基本知识,就可以拿着外语课本教外语,不需要什么教具和设备。 Disadvanfudges: 1.忽视口语教学。在教学里没有抓住语言的本质; 2.忽视语音和语调的教学; 3.过分强调翻译,单纯通过翻译手段教外语,不利于培养学生用外语进行交际的能力,易使学生在使用外语时对翻译有依赖性;</p><h2>英语教学法教程选择填空</h2><p>Unit 1 一,Views on language: 1、Structural view (language competence)结构主义语言观 —The founder:Saussure,lasen freeman&long —The structural view of language sees language as a linguistic system made up of various subsystems:1、the sound system(phonology)2、sound combinations(morphology)the discrete units of meaning 3、the system of combining units of meaning for communication(syntax) —The structural view limits knowing a language to knowing its structural rules and vocabulary 2 、Functional view功能主义语言观 —Representative:Johnson、marrow、swain canal (the core: grammar) —The function view not only sees language as a linguistic system but also a means for doing things功能不仅认为语言是一个语言系统,但也做事情的一种方式 —Learners learn a language in order to be able to doing things with it Use the linguistic structure to express functions 3、Interactional view 交互语言观(communicative competence) —Emphasis:appropriateness —Language is a communicative tool,which main use is to build up and maintain social relations between people —Learners need to know the rules for using the language in certain context 二,View on language learning语言学习观 1.Process-oriented theories:强调过程are concerned with how the mind organizes new information such as habit formation, induction, making inference, hypothesis testing and generalization. 2.Condition-oriented theories: 强调条件emphasize the nature of the human and physical context in which language learning takes place, such as the number of students, the kind of input learners receives, and the atmosphere. 3.Behavioristtheory,(Skinner and waston raynor) A the key point of the theory of conditioning is that” you can train an animal to do anything if yo u follow a certain procedure which has three major stages, s timulus, response, and reinforcemen t B the idea of this method is that language is learned by constant repletion and the reinforcement of the teacher. Mistakes were immediately corrected, and correct utterances were immediately praised. 4.Cognitive theory:Chomsky)thinks that language is not a form of behavior,it is an intricate rule-based system a nd a large part of language acquisition is the learning of this system.There are a fin ite number of grammatical rules in the system and with knowledge of these an infinite number of sentences can be produced. 5.Constructivist theory:(John Dewey)the constructivist theory believes that learning is a proces in which the learner constructs meaning based on his/her own experiences and what he/he r already knows 6.Socio-constructivist theory: (Vygotsky) he emphasizes interaction and engagement with the tar get language in a social context based on the concept of “Zone of Proximal Development” (Z</p><h2>storyline中文教程</h2><p>storyline中文教程</p><p>Storyline入门教程:中文安装教程(图文) 为了帮助你快速开始使用Articulate Storyline,我们创建了一个初学者的教程,引导你使用其最常见的功能和操作流程。主要包括:storyline中文安装教程、Storyline概述及界面介绍、创建你的第一张幻灯片,并添加一些内容、通过创建一个简单的场景和交互,了解如何创建交互内容、建立和编辑测试问题,学习如何创建一张结果幻灯片去跟踪测试结果、录制操作屏幕,学习创建交互式的软件仿真操作、自定义Storyline播放器、发布课程为flash、html5以及ipad 一、storyline中文安装教程 1.双击storyline.exe 2.启动安装向导 3.下载对应组件</p><p>4.准备安装Storyline前的提示,单击Next下一步 5.选择“I accept the terms of the license agreement”,接受用户许可协议。单击Next下一步</p><p>6.选择安装路径,默认为C:\Program Files\Articulate\Articulate Storyline\ ,单击Next下一步</p><p>7.提示开始安装程序,单击Install开始安装 8.安装过程中会显示安装进度 9.安装结束,默认会选中“Automatically upload error statistics to help us improve</p><p>Articulate Storyline”,自动上传错误统计帮助我们提高Articulate Storyline。单击Finish 结束安装。 10.安装完成后在开始菜单和桌面都有Articulate Storyline,我们可以直接双击桌面的Articulate Storyline快捷方式打开Articulate Storyline。 11. Articulate Storyline程序启动过程界面</p><h2>英语教学法期末复习资料</h2><p>(开放专科)英语教学法期末复习资料 Ⅰ. Choose the best answer Directions: In this part, you are given ten questions which are followed by 4 choices marked A, B, C and D. Read the choices carefully and choose the one that can best answer the question. 1. Which of the following is characteristic of children in learning a foreign language? A. They pay more attention to meaning than to form. B. They have a clear purpose in learning a foreign language. C. They can monitor their own learning. D. They can concentrate for a long time in class. 2. Which of the following is focused on writing? A. Labeling pictures according to their contents. B. Sequencing the pictures according to the story. C. Matching the pictures with the headings. D. Commenting on the pictures. 3. Which of the following activities helps train logical thinking best*. A. Story telling. B. Finding patterns. C. Interviewing. D. Mind mapping. 4. Which of the following should we examine if we want to assess the students' intrapersonal intelligence? A. Performance in a discussion. B. Posters. C. Learning diaries. D. Performance in an interview. 5. What does the following practise? I want you to send ^ it out in ^ a minute. I have collected a ^ lot^ of monkey stamps. A. Stress. B. Intonation. C. Pronunciation. D. Liaison. 6. Which of the following can help to present A. Realia. B. Miming. C. Examples. D. Pictures. 7. What strategy does "creating a situation for students to use the words" help to train? A. Association. B. Association. C. Contextualization. D. Collocation. 8. Which of the following activities can be used at the practice stage of vocabulary instruction? A. Completion exercises. B. Reading to discover the meaning of words. C. Cross-word puzzles. D. Teacher explaining the usage of words. 9. Which of the following is a communication activity? A. Bingo. B. Information transfer. C. Substitution. D. Twenty questions. 10. Which of the following can train oral proficiency? A. Flow chart dialogue. B. Distant dictation. C. Sequencing pictures. D. Labeling pictures. 11. Which of the following activities help to train reading? A. Drawing according to oral instructions. B. Designing praising cards.</p><h2>《英语教学法教程》期末考试讲稿</h2><p>Unit 1 Language and language learning 1.2 views on language in the structural view, language is a system of structurally related elements which include phonological units, grammatical units, grammatical operations, lexical items to transmission of meaning. Therefore the target of language learning is to mastery these elements. 结构观把语言看做是结构上相关联的元素的系统,包括语音单位,语法单位,语法操作,词项。语言学习目标是掌握这些元素。 In the communicative/functional view, language is regards as a vehicle for express functional meaning. Although the grammatical characteristics are included, however, the semantic and communicative dimensions of language are more emphasized. In this view the target of language learning is to learn to express communication functions and categories of meaning. 交际 / 功能观,语言是表达功能性意义的载体。虽然语法特点依然包括在内,但更强调语言的语义和交际层面。因此语言学习目标是学习表达通讯功能和意义类别。The last one is the interactional view of language, it sees language is the means for establishing and maintaining relationship between people, and for performing social transactions between individuals. So the target of language learning is initiate and maintain conversations with others. 交际观,语言是建立和维持人与人关系,执行社交的方法。语言学习目标,发起并维持对话 1.3 views on language learning and learning in general 课本定义 1.4 elements contribute to qualities of a good language teacher 1.5 how can one become a good language teacher? Unit 2 Communicative principles and task-based language teaching The ultimate goal of foreign language teaching is: to enable the learners to use the foreign language in work or life. 2.2 communicative competence</p><h2>王蔷主编的《英语教学法教程》第二版-unit1</h2><p>Unit 1 Language and Language Learning Aims of the unit In this unit we will discuss some general matters about language learning and teaching. We are going to discuss five questions on particular: 1.How do we learn language 2.What are the common views on language 3.What are the common views on language learning 4.What are the qualities of a good language teacher 5.How can one become a good language teacher 1.1How do we learn languages Mach of human behavior is influenced by their experiences. The way language teachers teach in the classroom is to some extent influenced by the way they learned languages. This is especially true in foreign language teaching. Before we discuss language learning theories, let us first reflect on our own language learning experience. Task 1 Below is a list of interview questions on how people learn a foreign language. In the first column, write down your own responses. Then interview three other students in your class and enter their responses in the other columns. Discuss your findings in group of 4 and draw some conclusion.</p><h2>(完整)小学英语教学法教程第二版期末复习知识点,推荐文档.docx</h2><p>《小学英语教学法教程》期末复习知识点 Unit1 children as language learners 1、How do children acquire their first language in general?(p2) By imitations 、repetitions 、listening to stories ...... Discussion point : language learning is a socializing process,interaction and experimenting with the language in communication are important ways for language learning 2、What are the differences and similarities between learning L1 and L2?(p6 D:the length of time 、 opportunities for experimenting with language S:Rich context and input ,opportunities for using the language ,interaction with others ,etc.are important in learning any languages . 3、Children ’s characteristics/suggestions for teachers(p10) 4、Ways to nurture children ’s motivation (p11 五点会判断即可 ) 5、P12 discussion point 、p20 1.5.1 (理解、会判断即可 ) 6、How do you understand humanistic education?(p21-22 ) Humanistic education requires teachers to treat children as human beings who have their own thoughts and needs.Teachers should never try to force their ideas into children ’s minds and should always try to think the same level as children. Discussion point : Children need to learn to try new languages and</p><h2>英语教学法与测试等全套英语专业课程大纲</h2><p>英语教学法与测试课程编码: 209009 课程英文名称: English Teaching Methodology and Evaluation 课程类别:英语专业学科基础选修课开课对象:英语专业三年级学生 开课学期:第六学期学分:2 总学时:32 教材: 王蔷,2000.《英语教学法教程》北京:高等教育出版社参考书: 1. Jeremy Harmer. 1983. The Practice of English Language Teaching. London: Longman. 2. Tang Lixing. 198 3. TEFL in China: Methods and Teaching . Shanghai: Shanghai Foreign Language Education Press. 3. Richards, J. C. & David Nuan. 2000. Second Language Teacher Education. Beijing: Foreign Language Teaching and Research Press. 4. Fang Yi & Rui Yuping. 1998. Way Out. Chongqing: Chongqing Publish House. 一、课程的性质、目的和任务 英语教学法与测试是英语专业语言学方向课程之一,主要内容为英语教学与测试理论、课堂教学设计的方法、课堂教学技巧等。本课程还介绍与英语教学法与测试相关的假设、热点论题和现有的教学模式。课程的主要目的在于引导学生了解英语教学与测试的主要理论,掌握课堂设计和课堂教学的设计和操作技巧,使学生能够针对特定的学生、根据特定的学生备课和教学。 二、课程的基本要求:要求学生通过本课程的学习,基本了解英语教学和测试的基本方法,了解有关的重要理论和其主要内容,熟悉一些主要术语;了解英语教学和测试的主要研究方向和前沿动态。掌握英语教学的主要方法,应用到将来的教学实践中去。 三、课程基本内容和学时分配 1. The Development, system and present status of English teaching methodology and the relation between it and other disciplines (2h); 2. Foreign language learning theories (2h); 3. Contrast analysis and error analysis (2h); 4. Major schools of foreign language teaching in the world (2h); 5. Teachers and students in English language teaching (2h); 6. ELT and mental development (2h); 7. English teaching syllabus and textbook in middle schools (2h); 8. Principles of ELT in middle schools (2h); 9. Classroom teaching of English (2h); 10. Teaching of English knowledge (2h); 11. Practice methods of English linguistic competence (2h); 12. Electrical teaching of English (2h); 13. Second classroom activities of English (2h); 14. Artistic teaching of English (2h); 15. English test and evaluation (2h); 16. Research of ELT (2h). 四、习题及课外教学要求:本课程用全英语授课,2/3 时间为授课,1/3 时间为讨论,要求学生课前预习所学内容,课堂上积极参加讨论,课后准备讨论题,以供课堂讨论用。 五、考试方式及成绩评定:考试方式:每位同学自由选择授课内容,自行设计授课方案,制作授课工具,进行15 分钟的试讲。试讲成绩根据教态、课堂语言和教学方法三个方面决定,其中教态占30%,课堂语言20%,教学方法占50%。</p><h2>英语教学法教程-王蔷主编</h2><p>总目标是使学生在义务教育阶段英语学习的基础上,进一步明确英语学习的目的,发展自主学习和合作学习的能力;形成有效的英语学习策略;培养学生的综合语言运用能力。综合语言运用能力的形成建立在语言技能、语言知识、情感态度、学习策略和文化意识等素养整合发展的基础上。语言技能和语言知识是综合语言运用能力基础。情感态度是影响学生学习和发展的重要因素。学习策略是提高学习效率、发展自主学习能力的先决条件。文化意识则是得体运用语言的保障,这五个方面共同促进综合语言运用能力的形成。 Principles of communicative language teaching(CLT) Communication principle:activities that involve real communication promote learning Task principle:activities in which language is used for carrying out meaningful taskspromote learning Meaningfulness principle: language that is meaningful to the learner supports the learning process Listening and speaking skills need to be refined in terms of the real communicative use,Students should have the chance to listen to and produce what is meaningful, authentic, unpredictable, and creative if possible. Reading is extract meaning or information and the learning of grammar and vocabulary is to facilitate the process Writing:In CLT, students have the chance to write to express their own feelings or describe their own experiences, thus making the practice of writing meaningful and authenticLanguage content (to incorporate functions); CLT just has only expanded the areas Learning process (cognitive style and information processing); and Product (language skills). Task-based Language Teaching (TBLT) Task-based Language teaching is, in fact, a further development of Communicative Language Teaching. It shares the same beliefs, as language should be learned as close as possible to how it is used in real life. It has stressed the importance to combine for m-focused teaching with communication-focused teaching Four components of a task A purpose: making sure the students have a reason for undertaking the task. If the students don't understand why they undertake the task, they will lost interest and the task will face failure. A context: the task can be real, simulated or imaginary, and involves sociolinguistic issues, such as the location, the participants and their relationships, the time and other important factors. A process: getting the students to use learning strategies such as problem solving reasoning, inquiring, conceptualizing and communicating. A product: there will be some form of outcome, either visible (a written plan, a play, a letter. etc.) or invisible (enjoying a story, learning about another country, etc.) The PPP Model & The 5-step teaching method 3p:Step I. Presentation Step II. Practice Step III. Production 5-step Model:Step I. Revision Step II. Presentation Step II. Presentation Step IV. Practice Step V. Consolidation Differences between PPP and TBL:1.The way students use and experience language in TBL is radically different from PPP 2.TBL can provide acontent for grammar teaching and form-focused activities.PPP is different in this aspect. Steps of designing a tasks:</p><h2>《英语教学法》期末考试A卷 BB</h2><p>▆ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ▆ 《英语教学法》 试卷 共2页(第 1 页) 答案务必写在答题纸上,否则不得分,超出黑色边框区域的答案无效! ▆ 《英语教学法》期末考试A 卷 开卷 考试时间90分钟,答题卡作答 姓名: 专业: 学号: 学习中心: 缺考标记,考生禁填! □ 成绩: 一、名词解释(答案务必写在答题纸上,40分) 1. 教学资源 答:教学资源是为教学的有效开展提供的素材等各种可被利用的条件,通常包括教材、案例、影视、图片、课件等,也包括教师资源、教具、基础设施等,广义也应该涉及到教育政策等内容。 2. 英语写作策略 答:是学生学习英语和培养语言能力的主要内容,教师应充分利用教材内容,由浅入深,由简到繁,指导学生进行多种形式的写作训练. 3. 教学设计 答:是根据课程标准的要求和教学对象的特点,将教学诸要素有序安排,确定合适的教学方案的设想和计划。一般包括教学目标、教学重难点、教学方法、教学步骤与时间分配等环节。 4. 发现式教学法 答:亦称假设法和探究法,这是一种基于问题学习的教学方法,是指教师在学生学习概念和原理时,不是将学习的内容直接提供给学生,而是向学生提供一种问题情境,只是给学生一些事实(例)和问题,让学生积极思考,独立探究,自行发现并掌握相应的原理和结论的一种方法。 二、论述题(答案务必写在答题纸上,30分) 1. PWP 教学过程的本质特征是什么? 答:英语阅读教学中的PWP 过程指的是将整个学习过程分为学习前(pre-learning )、学习中(while-learning )和学习后(post-learning )三个阶段。PWP 模式简洁实用,对促进教师的"教"与学生的"学"有很大作用。关键是在新课标下如何运用 PWP 来整合课程内容资源,使阅读教学简约高效。 2. 英语教学中如何进行教材的整合。请举例说明。 答:人教版《普通高中课程标准实验教科书》中每一个模块的每个单元都围绕一个主要话题开展听、说、读、写活动,各个部分的教学目标明确,不分课次和顺序,方便教师根据教学的实际情况灵活使用教材。在实际教学中,教师可以充分抓住教材的话题功能这一特点,对教材进行适当的整合,以学生以往的学习经验和知识为基础,恰到好处地对教学目标进行调试,对教学方法进行设计,从而使学生获得更大的学业进步。教材整合有利于教师因材施教,提高学生的学习效率,体现学生为主体、教师为主导的课堂教学方式,同时还可以开发教学资源,使教学具有灵活性、开放性和拓展性,方便学生更好地发挥潜能,提高教师的课程意识和专业素养,从而提高整体教学效果。 1文献综述 在知网查询了相关资料发现:董艳丽在英语教学设计中如何整合教材中,主要讲述了英语较教材模块之间的整合以及教材整合的原则;周金妹在教材整合在初中英语教学中的运用中提出,教材英语教学内容、学生学情相整合;林华英在整合英语教材,提高教学实效中,从宏观上提出了教材整合的策略;梁银碧在整合教材给学生轻松英语课堂中提出从学生的角度进行教材的整合。笔者认为,教材整合不单单是单元模块间的整合,还应该是一学期的教材整合,学年与学年间教材的整合,还应考虑小学、初中、高中教材的衔接性问题,并根据地区间差异进行教材整合。 2教材整合 2.1教材整合概念的提出 在2011年义务教育英语课程标准中提出教材整合的概念,其指出:“教材是实现教学目标的重要材料和手段,教师要善于根据教学的需要,对教材加以适当的取舍和调整。” 2.2教材整合的必要性 教材整合可以提高学生的学习效率。兴趣是最好的老师,如果在教学过程中教师只按照教材内容的顺序传授知识不进行相关补充,很可能会导致学生丧失学习兴趣,并影响学生学习的主观能动性。教师合理地对教材进行调整、扩展 、重新组合,在调动学 生兴趣的前提下,挖掘教材深层次的的内涵,这样会激发学生学习兴趣,并且有效提高学生的学习效率和学习的积极性。 教材整合可以帮助学生形成一套英语学习体系。在传统教学中,教师注重知识的传授,并不注重学生的创造性思维的发展和逻辑思维能力的培养,如果在教学过程中教师对教材进行整体把握,重难点分明,可能训练学生的逻辑思维能力,并生成由易到难,由简入繁的学习体系。 教材整合有利于激发学生学习的主动性。我们的教学活动的中心就是学生,学生是学习的主体,以学生的需求、兴趣、爱好进行重组教材并在教学过程中了解学生的需要,学习中困惑点,以此来扩展调整教材可以让学生投入到课堂中来,提高学生学习的主动性,让每个学生都有所收获,使学生得到全面的发展,对英语学习充满激情和活力。 2.3教材整合的主要策略 分析教材,找到本套教材的重难点,列出框架体系。教师在拿到教材之后首先应根据课程标准对教材进行分析,找出本学期教学的重难点。如人教版七年级上册英语课本,本册英语教材只涉及浅显的语言知识点,与学生的生活息息相关。因此,教师在教学过程中要重视学生的学习能力和培养学生逻辑思维能力和学习习惯,此外还应根据学生的真实生活进行教学,培养学生对英语的学习兴趣。 适当的补充或延伸。我们处于信息网络时代,要善于运用网络资源,对教材资源进行补充和延伸。例如在必修3 unit1 Festivals in the world ,在本单元导入之前可以在网上查阅世界各地的节日传统,让学生了解更多的西方文化知识,扩大他们的知识层面,达到英语教学的效果。 适当的删减或替换。对于教材中不太适合的内容,在进行教学设计时要依据学生的认知规律,进行替换和删减。如果全部照搬教材,学生会产生畏惧或厌倦的情绪,因此教师在备课时应经过严密思考,在不影响基本教学的情况下,替换和删减不符合学生的生活实际的内容。如在讲授冠词a/an 的用法时,如果只讲授语法必然会很枯燥,因此我们在对教学内容进行整合时,可以对教材</p> <div> <div>相关主题</div> <div class="relatedtopic"> <div id="tabs-section" class="tabs"> <ul class="tab-head"> <li id="4746032"><a href="/topic/4746032/" target="_blank">英语教学法教程</a></li> <li id="15739091"><a href="/topic/15739091/" target="_blank">英语教学法教程期末</a></li> <li id="21957831"><a href="/topic/21957831/" target="_blank">protel99se入门教程</a></li> <li id="13494981"><a href="/topic/13494981/" target="_blank">storyline中文教程</a></li> <li id="16371675"><a href="/topic/16371675/" target="_blank">英语教学法教程考试用</a></li> <li id="196536"><a href="/topic/196536/" target="_blank">mach3安装和设置</a></li> </ul> </div> </div> </div> <div class="container"> <div>文本预览</div> <div class="textcontent"> </div> </div> </div> <div class="category"> <span class="navname">相关文档</span> <ul class="lista"> <li><a href="/doc/1c14435046.html" target="_blank">英语教学法教程9 Teaching Listening</a></li> <li><a href="/doc/f519142258.html" target="_blank">英语教学法教程13-Integrated-Skills</a></li> <li><a href="/doc/5018623031.html" target="_blank">英语教学法教程教案</a></li> <li><a href="/doc/8e17442185.html" target="_blank">英语教学法教程 课件</a></li> <li><a href="/doc/a210392022.html" target="_blank">英语教学法教程(第二版)Unit2要点</a></li> <li><a href="/doc/17153642.html" target="_blank">英语教学法教程教案(王蔷)</a></li> <li><a href="/doc/ef9940955.html" target="_blank">英语教学法教程教案</a></li> <li><a href="/doc/2b18868835.html" target="_blank">《英语教学法教程》857试题库(附答案)</a></li> <li><a href="/doc/6e17737270.html" target="_blank">英语教学法教程复习笔记精华版</a></li> <li><a href="/doc/9a8520384.html" target="_blank">英语教学法教程主要知识点归纳30</a></li> <li><a href="/doc/c84015851.html" target="_blank">英语教学法教程</a></li> <li><a href="/doc/1a13173065.html" target="_blank">英语教学法教程-王蔷主编</a></li> <li><a href="/doc/f07785398.html" target="_blank">英语教学法教程PPTunit5</a></li> <li><a href="/doc/5614194854.html" target="_blank">《英语教学法教程》课件—04</a></li> <li><a href="/doc/8314568636.html" target="_blank">《英语教学法教程》</a></li> <li><a href="/doc/a6609144.html" target="_blank">英语教学法教程主要知识点归纳</a></li> <li><a href="/doc/e64821279.html" target="_blank">《英语教学法教程》主要知识点归纳</a></li> <li><a href="/doc/2011311287.html" target="_blank">英语教学法教程主要知识点归纳</a></li> <li><a href="/doc/6a12214034.html" target="_blank">《英语教学法教程》课件—11</a></li> <li><a href="/doc/9f6561048.html" target="_blank">英语教学法教程主要知识点归纳 </a></li> </ul> <span class="navname">最新文档</span> <ul class="lista"> <li><a href="/doc/0619509601.html" target="_blank">幼儿园小班科学《小动物过冬》PPT课件教案</a></li> <li><a href="/doc/0a19509602.html" target="_blank">2021年春新青岛版(五四制)科学四年级下册 20.《露和霜》教学课件</a></li> <li><a href="/doc/9619184372.html" target="_blank">自然教育课件</a></li> <li><a href="/doc/3319258759.html" target="_blank">小学语文优质课火烧云教材分析及课件</a></li> <li><a href="/doc/d719211938.html" target="_blank">(超详)高中语文知识点归纳汇总</a></li> <li><a href="/doc/a519240639.html" target="_blank">高中语文基础知识点总结(5篇)</a></li> <li><a href="/doc/9019184371.html" target="_blank">高中语文基础知识点总结(最新)</a></li> <li><a href="/doc/8819195909.html" target="_blank">高中语文知识点整理总结</a></li> <li><a href="/doc/8319195910.html" target="_blank">高中语文知识点归纳</a></li> <li><a href="/doc/7b19336998.html" target="_blank">高中语文基础知识点总结大全</a></li> <li><a href="/doc/7019336999.html" target="_blank">超详细的高中语文知识点归纳</a></li> <li><a href="/doc/6819035160.html" target="_blank">高考语文知识点总结高中</a></li> <li><a href="/doc/6819035161.html" target="_blank">高中语文知识点总结归纳</a></li> <li><a href="/doc/4219232289.html" target="_blank">高中语文知识点整理总结</a></li> <li><a href="/doc/3b19258758.html" target="_blank">高中语文知识点归纳</a></li> <li><a href="/doc/2a19396978.html" target="_blank">高中语文知识点归纳(大全)</a></li> <li><a href="/doc/2c19396979.html" target="_blank">高中语文知识点总结归纳(汇总8篇)</a></li> <li><a href="/doc/1619338136.html" target="_blank">高中语文基础知识点整理</a></li> <li><a href="/doc/e619066069.html" target="_blank">化工厂应急预案</a></li> <li><a href="/doc/b019159069.html" target="_blank">化工消防应急预案(精选8篇)</a></li> </ul> </div> </div> <script> var sdocid = "88b7df3e376baf1ffc4fad84"; </script> <script type="text/javascript">bdtj();</script> <footer class="footer"> <p><a href="/tousu.html" target="_blank">侵权投诉</a> © 2022 www.doczj.com <a href="/sitemap.html">网站地图</a></p> <p> <a href="https://beian.miit.gov.cn" target="_blank">闽ICP备18022250号-1</a>  本站资源均为网友上传分享,本站仅负责分类整理,如有任何问题可通过上方投诉通道反馈 <script type="text/javascript">foot();</script> </p> </footer> </body> </html>