毕设外文翻译

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

北京邮电大学世纪学院

毕业设计——外文翻译题目XX论坛的设计与实现

学生姓名学号

所在系(院)计算机科学与技术

专业名称计算机科学与技术年级

指导教师职称

年6月1日

Application of sum up:ASP programming experience

First,data sharing

In some cases the mixed-use VBScript and JScript function is very useful,but in different languages to share data between the script may also be useful.Achieve this shared approach is very simple:no matter what language is used,as long as the level of the page statement on the variables that can be invoked.

Targeted use similar methods,can be a suitable choice of the language to read, modify or call attributes of the object methods.Of course,given the object properties and methods by which it was created instance,as defined in the language.As the example of the procedure call VBScript,when the call from JScript parameters of a non-VBScript object methods,methods to comply with its call JScript call rules,and vice versa.

Second,the array of management

Array share issue is a little complicated.While the array is the same as the other variables in different languages can be shared between the script,but attention must be compatible with the problem.

VBScript array can be used in JScript VBScript under the symbols used,that is used myArray(2)cited an array JScript elements rather than an array of elements used symbols myArray[2].In addition,you can use a special JScript object-VBArray VBScript objects will be converted to an array JScript array.The following code from VBScript to create an array myVBArray JScript array myJSArray:

Var Temp=new VBArray(myVBArray)

Var myJSArray

MyJSArray=Temp.toArray()

First of all the above code to create a temporary VBArray object,and then use it to the toArray()method will be converted to their own JScript array.Since then,as you can use the same general JScript array myJSArray,such as myJSArray[1].However,it should be noted that,toArray()method will be a multidimensional VBArray converted to one-dimensional array of JScript.

JScript VBScript quoted from the array is more complicated.Although the VBScript, we can directly access JScript array of related methods and properties,but no direct access to JScript array of individual elements of the way.In other words,we can read the script in VBScript JScript length of the array of attributes,as follows:

X=myJSArray.length

But can not directly read the array of individual elements,the following VBScript code is not correct:

X=myJSArray(3)

To solve the problem of a viable solution is the implementation of a conversion process,such as the code below shows,here is the default assumption that VBScript scripting language:

<%

Dim Temp

Dim myVBArray

Temp=myJSArray.join(",")

MyVBArray=Split(Temp,",")

%>

Here the JScript join()method will be converted to an array myJSArray elements for a comma separated at the string,VBScript Split()function will be converted to a string array VBScript.Note here we are in VBScript environment join the call JScript methods. In accordance with this case,we can custom VBScript function to simulate the VBArray JScript object toArray()method to achieve JScript VBScript array to an array of conversion.

Three,with the establishment of dynamic ASP page templates

The template,I think we may have some concept of the word in many templates,the design of the general layout,as long as you use your own words are filled with characters like a placeholder.The template here is probably also mean that,relative stability in the pages of some fixed,some of the other root in different circumstances enter a different content.In fact,DreamWeaver also has the function of the template,but that static and can only be filled manually,and here about the dynamics of the content automatically filled.

相关文档
最新文档