We will look at a sample application, including screen shots of the development environment and portal resources, as well as code samples for the page navigation methodology.
我们将会看到一个样本应用程序,包括开发环境和门户资源的屏幕快照,以及页面导航方法的代码样本。
To add a button to point back to the main screen of the application, add the code shown in listing 3.
要添加一个按钮来指向应用程序的主屏幕,可以添加清单3中所示的代码。
When they'd show the working code to Jobs, he'd lean forward, his nose to the screen, and examine them closely, moving from the demo to the prototype and back again.
当他们将运行的代码展示给乔布斯看时,他人向前倾斜,鼻尖几乎碰到屏幕,他仔细的检查着,在测试机和原型机之间反复来回查看。
Both programmers work closely together, chatting the whole time, jotting down reminders of things to do, and pointing out pieces of code on the screen.
两个程序员会很紧密地在一起工作,总是在交谈,快速记下对要做的事儿的提醒,并且在屏幕上指出代码的片段。
All information stored in the contact will be stored in the QR code and displayed on the screen to be scanned.
所有在联系簿中储存的信息都会被储存在二维码中,它会出现在屏幕上待君扫描。
Instead of gracefully returning an error code to the parent application, I print the error to the screen and bail out of the code.
我没有按通常作法将错误代码返回给父代应用程序,而是将错误打印到屏幕,然后退出程序。
The window JSP template has links to commonly used templates, code to render the screen, and then ends with the WML tag.
窗口JSP模板有常用模板(即处理屏幕的代码)的链接,然后以WML标记为结尾。
Software developers often include QR codes on their website, so users can install their app easily by scanning the QR code on the computer screen.
软件开发者常常将二维码放在他们的网站上,这样用户就可以扫描电脑屏幕上的二维码轻松安装他们的应用程序了。
The menu links on the left side of the screen call database code with transactions in various ways.
屏幕左侧的菜单链接以多种方式调用数据库事务代码。
What this means is that I start with a blank screen, start coding, and, a few tens of thousands of lines of code later, I have something to sell.
这就是说,我常常要从空白的屏幕开始从头编码,当代码达到数万行之后才能拿去销售。
The feedback loop is the amount of time between making a change in code and seeing the results in the execution of your application on the screen.
反馈周期是从改变代码到在屏幕上看到执行应用程序的结果所用的时间。
That content, though - what should be on the page or screen, and which buttons a user should have to click to make it work - defines the first piece of production code that a developer can write.
那些内容-页面上应该显示哪些东西,用户应该点哪个按钮-定义了开发人员可以开始编写的第一块代码。
A few paragraphs and maybe a screen shot or some code may be just enough to help someone else get their own code flowing.
比较少的段落和一个截图或一些代码都可能对帮助其他人更有帮助。
Alternatively, if you prefer to build from source, visit the GNU Screen project page (see Resources for a link), and download the latest code bundle.
另外,如果您喜欢从源代码构建软件,可以访问GNUScreen项目页面(见参考资料中的链接)并下载最新的代码包。
To specify a style sheet to be used depending on the current screen size, you can add this code to the template.
如果要根据当前的屏幕大小指定要使用的样式表,您可以将下列代码添加到模板。
Figure 1 shows a screen capture of the code from Listing 2 running on an iPhone.
图1显示的是清单2中代码的屏幕截图,这是在iPhone上运行的。
Now consider the snippet of code I would call very frequently to move all the aliens around the screen. I would almost undoubtedly write it like this.
现在来看看在本文中我经常要调用的那个用来将外星人在屏幕上到处移动的代码片段,我会毫不犹豫地这样编码。
There is an HTML TAB on the left side of the Firebug console that shows the HTML code being displayed on the screen, including the class attributes.
在Firebug控制台的左侧有一个HTML选项卡,其中显示了屏幕上正在显示的HTML代码,包括类属性。
Finally, at the top of the body section, add the code to actually put the button on your user's screen.
最后,在body部分的顶部,添加代码使按钮实际显示在用户的屏幕上。
The main benefit to this approach is that you don't have to write the markup code for every screen in the HTML file.
这种方式的主要好处是不需要在HTML文件中为每个屏幕编写markup代码。
My workaround is to coerce the code into believing it's running on a 720x400-pixel screen, which seems to work nicely.
我的解决方案是强制代码相信自己是在一个720x400像素的屏幕上运行的,这看起来似乎可以很好地工作。
The parameter is set by our custom code to False when the report is viewed on screen and True when it is printed or exported.
我们的自定义代码会在报表是在被显示在屏幕上时将该参数设置为False,而当报表是在被打印或输出时,将其设置为True。
Run this code and you'll see a bunch of text fly across the screen as Hadoop begins doing its work.
运行这些代码,Hadoop开始运行时您将可以看到一堆文本在屏幕上一闪而过。
So you will be able to design full-page layouts on screen as an alternative to writing ERb (embedded Ruby) templates in code.
有了它,你能够在屏幕上设计全页面的布局,而不用去写ERb(嵌入的Ruby)模板代码了。
At some point—usually, when the LED code E1F1 appears—the screen displays its first main output, and five icons or words appear.
过一会儿(通常是在出现LED 信号E1F1时),屏幕显示最初的主要输出,出现5 个图标或一些单词。
Switch to the JSP Source tab and verify the code (also see the screen output in Figure 37)
切换到JSPSource页签,并验证代码(也可以参见图 37中的屏幕输出
If neither username nor password get assigned values retrieved from logon data the code will throw a UserRecoverable exception which will lead to displaying a logon screen if a browser is the client.
如果username和password都没有赋值为从登录数据获取的值,代码会抛出userrecoverable Exception;如果客户机是浏览器,就会显示登录屏幕。
Just as with the program in Listing 1, you can screen-scrape this code into a file, save it as calc.tcl, chmod it as executable, and then run it.
与清单1中的程序一样,您可以将这段代码从屏幕搜集到一个文件,并将其保存为calc . tcl,使用chmod将其权限修改为可执行,然后运行该程序。
It is recommended to have alternate text on these buttons, instead of have the screen reader read the URL. Here is an image button (Go button), followed by sample code to create it.
建议在这些按钮上使用替代文本,而不是让屏幕阅读器读取url。
It is recommended to have alternate text on these buttons, instead of have the screen reader read the URL. Here is an image button (Go button), followed by sample code to create it.
建议在这些按钮上使用替代文本,而不是让屏幕阅读器读取url。
应用推荐