You might try to clean up this code a bit by packaging the key lookup code in a named template.
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
When you generate a key, Google is nice enough to provide you with a snippet of code that can get you up and running.
生成键时,使用Google就足以提供运行良好的代码片段。
For your design you want to come up with key abstractions, and then you want to have your other code just interact with those abstractions, not with the specific implementations.
就你的设计而言,你希望能提出一些关键的抽象,然后其他的代码只要负责和这些抽象,而非具体实现进行互相作用。
It is generally up to the code calling the rule to make sure that the object exists on the session at the expected key.
通常,调用规则的代码需要确保会话中存在对应于预期键的对象。
To begin using the Google Maps APIs, you must first sign up to receive an API key from the Google Code site.
要开始使用GoogleMapsAPI,必须先在GoogleCode站点中注册以获得api密钥。
Listing 15. Code fragment of the key-up event handler for handling the up Arrow and Down Arrow keys.
清单15.key - up事件处理程序中处理upArrow和Down arrow键的代码片段。
To consider the Dijkstra algorithm, analysis it completely, then come up with an optimized algorithm by improving the theory and implementation, and give the key code.
从原始的迪杰斯特拉算法入手,进行透彻分析,在算法思想和实现方式上提出一种全面优化的算法方案,并给出了核心代码。
Normal breakpoints are set (or removed) by moving the code-window cursor onto the desired opcode, and then pushing the F2 - key. Up to50 breakpoints can be defined.
普通的断点可以通过移动的编码窗口来设置或清除。通过按键f 2设定,可以设置50个断点。
Normal breakpoints are set (or removed) by moving the code-window cursor onto the desired opcode, and then pushing the F2 - key. Up to50 breakpoints can be defined.
普通的断点可以通过移动的编码窗口来设置或清除。通过按键f 2设定,可以设置50个断点。
应用推荐