Notice that the first script in the figure is not placed in an event handler method.
注意,图中的第一个脚本并不放置在一个事件处理程序方法中。
Listing 3 demonstrates the first method for executing a script file directly from a command line.
清单3展示了直接从命令行执行脚本文件的第一种方法。
Using that method enables you to create and commit a test log record by importing a script log.
这种方法将使您能够通过导入一个脚本日志,创建并且提交一个测试日志。
When using this method, it is a good idea to date the files and create a simple backup script that generates suitably named files.
当使用这种方法时,最好注明这些文件的日期,并创建一个简单的备份脚本,专门用来生成指定的文件。
To accomplish this, you can wrap the three lines of code produced by the recorder into a separate method in your test script.
要完成这项操作,可以将记录器生成的三行代码封装到测试脚本的某个单独方法中。
I use the PHP command-line interpreter to run that script and put the method call into the queue.
我使用PHP命令行解释器运行这个脚本,并将这个方法调用放进队列中。
It seeks the same method used to create the data model, a database connection, or a DDL script, then performs the compare, and displays the results in the compare pane.
它寻找用于创建数据模型、数据库连接或ddl脚本的相同方法,然后执行比较,并在比较面板中显示结果。
You can also select multiple files or folders and pass a list of files to a script with the same right-click method.
还可以选择多个文件或者文件夹,并采用相同的右击方法,将文件清单传递给脚本。
Be sure your script is protected from an error; if the method call fails, it throws an exception.
要确保脚本能够应对错误;如果方法调用失败,它会抛出异常。
As before, this script retrieves the worksheet entry and then invokes the delete method to transmit a delete request to the entry's edit URL.
如前所述,这个脚本检索工作表条目并调用delete方法来将一个delete请求传递给条目的编辑url。
Now all you need to do is add a reference to this method in your startup script, and you're ready to start testing the application.
现在只需要在启动脚本中加上对这个方法的引用,现在就可以开始测试应用程序了。
The first line and the last line of this script could be executed also using the static method instead of being part of this script.
脚本的第一行和最后一行也将采用静态方法执行,而不作为脚本的一部分来执行。
In this method, the control creates its own UI and injects any needed script into the host page.
在这个方法中控件创建界面并在页面中写入所需的脚本。
Using a script template, determine the best technique for providing method parameter values to the script (for example, in a property file or via command line parameters).
通过使用脚本模板,判断向脚本提供方法参数值的最佳技术(例如,用属性文件还是通过命令行参数)。
The submission method makes use of Posting XML data to a PHP script.
提交方法向php脚本提交XML数据。
Below is a script that USES the DVD method and the FTP method to perform the backup.
下面是使用DVD方法和FTP方法进行备份的脚本。
Script engines are free to take liberties with the names you pass to the put method.
脚本引擎可以随意对待传递给put方法的名称。
Using this method requires manual adaptation of the db2cos script and registration of lock timeout events by calling db2pdcfg.
使用此方法需要手动改写db 2 cos脚本并通过调用db2pdcfg来注册锁定超时事件。
I simply create an instance of GroovyShell, pass in the script name, and call the run method.
我只是创建了GroovyShell的实例,传递进脚本名称,然后调用run方法。
This method is doing the most complex work of the whole script, but as you can see it's pretty simple to follow thanks to cmislib.
这个方法将完成整个脚本中最复杂的工作,但是如您所见,它非常简单,这要归功于cmislib的作用。
Listing 9 contains the code for the delete.php script, which receives the event identifier through the GET method and USES it to delete the event, following the approach outlined in Listing 6.
清单9包含了delete . php脚本代码,该代码通过GET方法取得事件标识符,然后用标识符删除事件,方法和清单6相同。
When your code calls a script engine's eval method, the engine's default bindings of keys and values are used.
当代码调用脚本引擎的eval方法时,将使用引擎默认绑定的关键字和值。
Script, which accepts the unique album and photo IDs from list.php using the GET method.
删除照片的delete . php脚本会通过GET方法从list . php接受惟一的照片ID和相册id。
This __get method is specific to PHP V5, so this script must be run with PHP V5.
这个__get方法特定于PHPV5环境,所以此脚本必须在PHP V 5下运行。
Each time the script is requested, it checks to see whether the request method is GET or POST and USES this distinction to decide the action to take.
每一次请求脚本时,它都会检查看请求方法是GET还是POST,然后采取相应的措施。
The Interpreter class has one method, invoke , which is given the name of the script to execute and not much more.
Interpreter类有一个方法,为invoke,将脚本的名称传递给该方法就可以执行,仅此而已,没有什么特别的。
You could simply call the above runScript() method to execute the script that is mapped to the URL of the HTTP request.
可以通过调用上述的runScript()方法来执行 与此HTTP 请求的URL相映射的那个脚本。
The Linux test Project used this design method when designing the Linux kernel stress test script ltpstress.sh.
LinuxTestProject在设计Linux内核压力测试脚本ltpstress . sh时使用了这一设计方法。
The import parts of the script are in the registerActionhandler method, which connects a bot object with a particular action string and method.
脚本中重要的部分是 registerActionhandler方法,该方法连接到具有特殊动作字符串和方法的bot对象。
Because you used GET for the submission method, the PHP script received this information just as it would from a traditional Web form.
由于使用GET作为submission的方法,php脚本就像从传统Web表单中那样接收此信息。
应用推荐