使用脚本函数有它的优点和不足。
Using script functions has its advantages and disadvantages.
我们来看看用来构建用户界面的一些脚本函数。
Let's review some key script functions to used to build the user interface with flex.
执行在当前加载的文档中定义的脚本函数。
Executes a script function that is defined in the currently loaded document.
执行在HTML页面中定义的动态脚本函数。
Executes an Active Scripting function defined in an HTML page.
要调用这个脚本函数,你需要为它创建一个函数类型声明。
To call this scripted function, you have to create an event declaration for this function and call that.
mkewuid脚本函数为命令行上提供的每个字符串输出一个记录行。
The mkewuid script function will output a record line for each string of characters provided on the command line.
下面是 mkewuidKornShell脚本函数产生的用法信息
The following usage message information is from the mkewuid Korn Shell script function
上面的示例演示如何使用mkewuid脚本函数动态地计算用户名的uid号。
The example above illustrates how the mkewuid script function may be used to dynamically calculate the uid number of a user name.
mkewuid脚本函数的默认输出记录包含五个字段,字段之间由冒号(:)分隔。
The default output record from the "mkewuid" script function consists of several fields of information delimited by a colon (:) character.
脚本函数应该能够以多种格式生成ewu值,比如十进制、二进制、八进制或十六进制。
The script function should be able to generate EWU values in multiple formats, such as base 10, binary, octal, or hexadecimal.
使用 InstallShield脚本函数RegDBGetKeyValueEx 来执行注册表查询。
The InstallShield script function RegDBGetKeyValueExis used to perform a registry query.
所有矩形都设置为响应onclick、onmouseover和onmouseout事件,它们为此调用的是同一个脚本函数。
All the rectangles are set to respond to onclick, onmouseover, and onmouseout events, and all call the same scripted functions to do this.
脚本的其余部分是函数本身。
每个HTML页面都变成一个只有有限几行的小php脚本,日期函数隐藏在某个地方。
Every HTML page turns into a small PHP script with a skimpy line with the date function tucked in somewhere.
以下脚本用于研究此函数的使用情况。
Below is the script to investigate the use of this function.
假设您想要一个脚本或函数来操作当前工作目录中的所有文件或目录。
Suppose you want a script or function that operates on all files or perhaps directories in the current working directory.
清单7显示那个php脚本中实现的函数。
Listing 7 shows the functions implemented in that PHP script.
您已经了解了如何将参数传递给函数或脚本以及如何识别选项,现在开始处理选项和参数。
So now you have looked at how parameters are passed into a function or script and how to identify options. Now to start processing the options and parameters.
然后脚本定义回调函数。
如果您运行设置变量或包含函数的脚本,以及在同一个上下文中执行的后续脚本,那么可以使用前一个脚本的变量和函数。
If you run a script that sets variables or contains functions, subsequent scripts executed within the same context can use the variables and functions of the previous scripts.
首先,必须先执行包含想要调用的那个函数的脚本。
First of all, you must execute the script containing the function that you want to call.
这确保可以通过此变量中列出的目录访问脚本调用的所有程序、实用程序、函数、脚本等等。
This is to ensure that all programs, utilities, functions, scripts, and more called by the script are accessible using a listed directory in the variable.
该脚本的主函数看上去基本与前面具的示例相同,除了几个微不足道的异常。
The main function of this script looks basically the same as the previous example with a few minor exceptions.
获悉标记何时加载的最好的方法是让标记返回的脚本调用函数而不是简单地加载数据。
The best way to know when a tag is loaded is to have the script that the tag returns call a function instead of simply loading data.
对于现有函数,能够执行、查看和删除脚本。
For an existing function, ability to execute, view script, and delete is provided.
在这里您也可以发布您关于php脚本、函数、语法、变量、php调试及与PHP开发人员相关的所有其他主题的问题。
Post your questions about PHP scripts, functions, syntax, variables, PHP debugging and any other topic of relevance to PHP developers.
当错误发生时,v8会抛出一个异常。比如,当一个脚本或者函数试图去访问一个并不存在的属性,或者调用一个并不是函数的函数。
V8 will throw an exception if an error occurs - for example, when a script or function attempts to read a property that does not exist, or if a function is called that is not a function.
用于显示小部件的一个新函数位于脚本底部。
A new function to display the widget is placed at the bottom of the script.
现在,等待脚本返回并结束这个函数。
At this point you wait until the script returns, and end the function there.
这迫使管理员或开发人员不得不经常修改脚本以使用其他值;为了避免这个问题,应该使用变量并为脚本或函数提供参数。
To keep administrators or developers from constantly having to modify a script to work a certain way with other values, use variables and supply arguments to the script or function.
应用推荐