The synchronized statement enbales only one thread to enter a code block at a time.
同步语句一次仅允许一个线程进入代码块。
Similarly, to set the values for a button, you might enter the code shown in Listing 2.
类似地,要设置按钮的值,您可以输入清单2中所示的代码。
To set the values for a text field, you would enter something like the code shown in Listing 1
要设置文本域值,您需要输入一些类似于清单1 所示的代码
If running Basic Authentication, that means a user is prompted to enter username and password, the HTML code will submit the credentials entered in two predefined FORM fields.
如果运行BasicAuthentication,就意味着提示用户输入用户名和密码,HTML代码会提交在两个预定义的表单字段中输入的凭证。
The generated code for SendingPortlet included an HTML form to let the user enter a message.
为SendingPortlet生成的代码包括一个HTML表单,这个表单可以让用户输入消息。
A RideSynergy visitor USES the page shown in Figure 1 to offer or request a ride, specify a starting and ending ZIP code, and enter an E-mail address.
访问RideSynergy的用户使用图1所示的页面提供或请求车辆,需要指定旅行起点和终点的ZIP编码并输入一个电子邮件地址。
Within this form are two elements: a text area provided to allow users to enter plain Scilab code for execution and a Submit button that performs the form action.
此表单内有两个元素:一个文本区域用来供用户输入scilab代码以便执行;一个Submit按钮用来执行表单动作。
This code has a simple form that prompts the user to enter a keyword to search on Twitter.
代码中有个简单的表单,提示用户输入在Twitter中搜索的关键词。
Any arbitrary code can enter a When block to decide whether or not to handle an Exception.
任何的代码都可以添加When去决定是否要处理某个异常。
If you decide to visit a zoo ask whether it adheres to the World Association of Zoos and Aquariums' Code of Ethics before you enter.
如果你决定要去参观动物园,请在进去之前确定他们是否坚持了世界动物园和水族馆协会的道德标准。
The search screen provides a form to enter a zip code.
搜索屏幕提供了一个表单用以输入邮政编码。
On the right side of the view, click to enter the code that you want to run when a user clicks on the header.
在这个视图的右边,点击并输入代码,这是您想要在用户点击这个标题时所运行的代码。
Throughout the previous articles in this series, you generally had to re-enter any code, even if it was identical to a previous line of code.
在本系列的前几篇文章中,您通常不得不重复输入所有代码,即便它与上一行代码完全相同。
Seeing as it's inefficient to re-enter the same code three times, a looping mechanism can be employed to query the registries of each machine in turn.
我们注意到,三次重复输入相同的代码效率很低,因此可以使用循环机制来轮流查询每台机器的注册表。
The longer a synchronized code block requires for execution, the longer other threads wait to enter that block.
同步代码块所需的执行时间越长,其他线程等待进入该代码块的时间就越长。
The engineers' solution was to add a three-digit security code that the cosmonaut would have to enter to gain command of the spacecraft.
设计师的解决方法就是加设一个三位数字安全密码,宇航员输入密码才会得到飞船指令。
Right now, you have to go to a third site, enter a promotion code, something else.
现在做网络广告的话,必须进入一个第三方网站,输入优惠码,或是诸如此类的东西。
Once you've read the information on the page, you have to enter your password, a captcha code and then confirm that you want to delete your account.
当你需要阅读网页的信息时,你必须输入法密码、验证码,然后确认页面上你想要删除的信息。
Once you've read the information on the page you have to enter your password a captcha code and then confirm that you want to delete your account.
当你需要阅读网页的信息时,你必须输入法密码、验证码,然后确认页面上你想要删除的信息。
If you enter valid code into a BBCDT source file, you see the same syntax styling you've become accustomed to with the full CDT (see Figure 1).
如果在BBCDt源文件中键入有效的代码,将看到在完整的CDT中常见的语法样式(见图1)。
Once it's set up, the farmer just needs to call that phone and enter a code to get it going.
连接好了以后,农民只要打个电话,输入密码就能让水泵工作了。
The last line is a prompt that indicates that the interpreter is ready for you to enter code.
最后一行那个是提示符,告诉你解释器已经就绪了,你可以输入代码了。
The code also includes a simple web form for the user to enter a new status message; on submission, the message is transmitted to the form processing script using POST.
代码还为用户提供一个简单的Web表单来输入新的状态消息;一提交,消息就会通过POST传递至表单处理脚本。
Because of the scoping rules for closures, one cannot use a goto to enter a block of code containing a closure.
因为闭包的范围规则,开发时不能使用goto语句进入包含闭包的代码块。
To make this code-writing process easier, try the Domino enumeration code Generator page, which allows you to enter an enumeration name, a data type, and all the values you want to use.
要简化这一代码编写过程,请尝试DominoEnumerationCodeGenerator页面,它允许您输入枚举名称、数据类型和希望使用的所有值。
In your source code, you will allow the user to enter a name and display the value in the target portlet.
在您的源代码中,您将允许您的用户键入一个名称并将这个值显示在目标portlet中。
Therefore, the normal form action is correct for Step 4. However, Order Review does offer a detour to enter a discount code.
因此,通常的表单动作对步骤4 而言是正确的。不过,OrderReview的确提供了输入折扣编号的另一个弯路。
The function which drives the conversion function is now a little bit simpler since it only has to load the data, run the function, and copy it back. Here is the code (enter as convert_driver.s)
调用转换函数的函数现在简单一点了,这是因为它需要加载数据、运行函数并将结果复制回来。
Checking this box will cause a coupon box prompt to be displayed to the customer (asking them to enter their coupon code) during the order process.
选取此框,则优惠券选框提示会在客户订购过程中显示(要求客户输入他们的优惠券代码)。
You can take further action when you encounter other options. For example, here's a code snippet modified to print the filename you enter
当您遇到其他选项时,可以采取进一步的操作。
应用推荐