In this revision of Listing 4, the user is presented with separate search fields for title, author, and visibility.
在清单4的这个修订版中,用户将看到针对标题、作者和可见性的单独的搜索字段。
If a new board manager wants to keep his board documents separate, this approach will call for some changes to Listing 1 and Listing 6.
如果一个新任董事会管理人员想要单独保存他的董事会文档,这一方法将需要对清单1和清单6做一些更改。
You can also place database-management code in a separate class to encapsulate this type of functionality, as shown in Listing 3.
您还可以把数据库管理代码放到一个单独的类中以封装这类功能,如清单3所示。
For example, suppose that you have a class that stores user information and service information in two separate hash tables, as shown in Listing 3.
例如,假设您有一个类,它用两个单独的散列表来存储用户信息和服务信息,如清单3所示。
The code shown in Listing 5 reads from the data stored in the readings table and presents the temperature and light data in separate charts.
清单5中所示的代码可以读取存储在读数表中的数据,然后以不同的图表显示温度和光数据。
You might also want to write out the information to separate files (see Listing 5).
您还可能会希望将信息写入到不同的文件中(请参见清单5)。
First, you have to realize that you can write CSS in separate files, and refer to those external files in your HTML, as Listing 7 shows.
首先,必须知道,可以将CSS写入单独的文件,然后在HTML中引用这些外部文件,如清单7所示。
In general, HTTP treats a multipart message body no differently than any other media type, as Listing 3 shows: strictly as payload (separate HTTP request).
一般来说,HTTP对待多方消息主体与对待任何其他媒体类型没什么区别,如清单3所示:严格地作为有效载荷(单独的HTTP请求)。
Instead of listing the all files in order, the build differences report generates separate lists of files for those whose coverage has improved and those whose coverage has deteriorated.
构建差异不会按顺序列出所有的文件,而是为那些覆盖率提高的或者覆盖率恶化的部分,产生单独列表的文件。
I've demultiplexed these into separate productions in the JJTree script in Listing 4, since this makes the code on the client side more straightforward.
在清单4中,我已经将这些运算符分离到JJTree脚本中的单独结果中,因为这让客户机端的代码更简单。
You could imagine defining a separate, parallel IOComparator interface that does throw the necessary exceptions, as shown in Listing 5.
可以想象定义一个单独的、并行的IOComparator接口,该接口抛出必要的异常,如清单5所示。
Take the revious example in Listing 7, where we took an element with the ID myField and applied three separate style properties to it.
再看看前面清单7 中的例子,我们用一个ID 为myField 的元素,对其应用三个不同的样式属性。
For example, if you run the previous command and add --outdir /tmp/uptime, a transcript of the command from each host is captured in a separate file in /tmp/uptime, as Listing 4 shows.
例如,如果运行前面的命令并添加 --outdir /tmp/uptime,那么会把每个主机的命令输出捕捉到 /tmp/uptime中单独的文件中,见 清单 4。
The queries could be stored in separate files for rapid prototyping and so that multiple report formats could be supported. The code to evaluate the query using Saxon is shown in Listing 4.
查询可以存储在单独的文件中,以便进行快速原型制造,因此,可支持多种报告格式。
Listing 2. XML and relational data in separate table Spaces and buffer pools.
必要时,如何将XML数据放入一个单独的表空间中?
The code in listing 4 implements a crude parser that assumes that we use colons to separate buddy IDs from the associated note and semicolons to separate subsequent notes.
清单4中的代码实现了一个简单的解析器,它假设我们使用冒号分隔好友ID和相关的通知,并使用分号分隔后续通知。
Most people reading this will have a to-do program, or a paper list or text file, listing not only projects and tasks but separate lists for home and work and possibly half a dozen different contexts.
大部分读这篇文章的人多少都一份待完成清单,或是一张纸单子,或是一份文档,它不仅列出了项目、任务,还根据工作、生活以及其他可能出现的种种环境进行了细分。
Next you define a divider line to separate the business card and the text area, and then you initialize the text area as shown in listing 11.
接着定义分隔线,将名片和文本区域分开,然后初始化文本区域,如清单11所示。
A code very similar to the code shown in Listing 1 can be used to parse the names which USES underscores to separate words.
可以使用非常类似于清单1的代码来分隔单词。
Listing 16 USES cut to separate the two columns of text2 and then USES a space as an output delimiter, which is an exotic way of converting the TAB in each line to a space.
清单16使用cut来分隔text2中的两个列,然后使用空格作为输出分隔符,这是一种将每行中的制表符替换为空格的好方法。
For example, say I want to move the block of code after the call to map.get in Listing 3 to a separate method.
例如,假设我想要在调用了清单3中的map .get后,将代码块移到另外一个方法。
For example, under Solaris, you get detailed statistics for each protocol, and separate information for IPv4 and IPv6 connections (see Listing 9).
例如,在Solaris上,会获得针对每个协议的详细统计数据,以及分别针对IPv4和IPv 6连接的信息(见清单9)。
Or, if you prefer the version that USES spawn to kick off the Producer into a separate thread from main (which is most closely mirroring the original), it might look like Listing 8.
如果喜欢使用spawn把Producer放在main之外的另一个线程中(这非常接近最初的代码),那么代码可能像清单8这样。
A separate file, WEB-INF/sun-jaxws.xml (shown in Listing 2), is used to configure Metro to route requests received by the servlet to the service-implementation code.
另有一个文件 WEB-INF/sun-jaxws.xml(清单2所示)用于配置Metro,使其将servlet接收的请求路由到服务实现代码。
For group payment, please attach a separate sheet listing the names and amount payable by each applicant.
团体付款请另纸列明每位报名者之姓名及付款额。
For group payment, please attach a separate sheet listing the names and amount payable by each applicant.
团体付款请另纸列明每位报名者之姓名及付款额。
应用推荐