Listing 4 shows the beginning of the sample wrapper script, which defines a usage message that displays if you execute the script with no arguments or the wrong number of arguments.
清单4给出了此示例包装器脚本的开始部分,其中定义了一个使用消息,如果在没有参数或参数数量错误的情况下执行该脚本,就会显示这个消息。
Following this code, the script defines a simple product catalog as an array, with the array keys as SKUs and the corresponding values holding product information.
在这几行代码之后,脚本将一个简单产品目录定义为一个数组,以数组键为SKUs,而对应的值存放产品信息。
ScriptSource defines how Spring accesses the actual script source code; for example, via the file system or a URL.
ScriptSource定义Spring如何访问实际的脚本源代码;例如,通过文件系统或url。
ScriptContext is an interface that defines and controls a script engine's run-time context.
ScriptContext是一个定义和控制脚本引擎运行时上下文的接口。
The element defines a path you can reuse throughout the Ant script.
元素用于定义在整个ant脚本中可以重用的路径。
RUP defines a test script in a way that differs from TMap.
RUP按照一种有别于TMap的方式来定义一个测试脚本。
The HelloMessageApi class defines a hello_message API method that takes two string parameters, firstname and lastname, and returns a string value. The hello_message_api.rb script is shown below.
HelloMessageApi 类将定义 hello_messageAPI方法,该方法将获取两个字符串参数,名字和姓氏,并返回字符串值。
HTML5 defines a new native date picker control without having to include a script on the page.
HTML5定义一个新的本地日期选择器,不必包括使用页面上的脚本。
Here is an example of how you might use these methods in a script or, more appropriately, with a class that defines the Place an Order dialog.
这里是一个您可以如何在脚本中使用这些方法的实例,或者更适当地说,利用定义了PlaceAnOrder对话框的类?
The DOM Events specification defines a way to attach event observers from script, as shown here in Listing 3.
DOMEvents规范定义了从脚本中附加事件观测者的方法,如清单3所示。
The script associated with the probe is to increment the count variable, then to emit a message that defines the number of times the call has been made and the PID for the current invocation.
与探针相关联的脚本将递增count变量,然后发出一条消息,该消息定义调用的次数和当前调用的PID。
The script associated with the probe is to increment the count variable, then to emit a message that defines the number of times the call has been made and the PID for the current invocation.
与探针相关联的脚本将递增count变量,然后发出一条消息,该消息定义调用的次数和当前调用的PID。
应用推荐