前面提到的上下文环境和作用域的知识,除了了解这些知识之外,还是理解闭包的基础。至于“闭包”这个词的概念的文字描述,确实不好解释,我看过很多遍,但是现在还是记不住。但是你只需要知道应用的两种情况即可——函数作为返回值,函数作为参数传递。第一,函数作为返回值如上代码,bar函数作为返回值,赋值给f1变量...
分类:
编程语言 时间:
2014-09-26 09:04:48
阅读次数:
270
原文:快速构建Windows 8风格应用23-App Bar概述及使用规范本篇博文主要介绍App Bar概述、App Bar命令组织步骤、App Bar最佳实践。 App Bar概述 Windows 8 Store应用中的App Bar(应用程序工具栏)起到的作用和Windows Phone中App...
分类:
移动开发 时间:
2014-09-23 17:12:34
阅读次数:
223
原文:快速构建Windows 8风格应用24-App Bar构建本篇博文主要介绍构建AppBar基本步骤、如何构建AppBar、如何在AppBar中构建上下文命令、如何在AppBar中构建菜单、如何构建页面间共享AppBar。 构建应用栏的目的的显示导航、命令和始终隐藏不需要的使用的工具。我们可以把...
分类:
移动开发 时间:
2014-09-23 17:07:54
阅读次数:
487
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:
移动开发 时间:
2014-09-23 16:46:54
阅读次数:
224
From google: If your app uses a custom image as the background of the bar, you'll need to provide a “taller” image so that it extends up behind the st...
分类:
移动开发 时间:
2014-09-23 13:38:34
阅读次数:
147
如果android安装正确的话,但是eclipse里面的导航条就是没有AVD 可以通过「Window」?「Customize Perspective」?「Tool Bar Visibility」Tab画面上选择 Android SDK and AVD Manager来显示http://blog.si...
分类:
移动开发 时间:
2014-09-22 22:08:13
阅读次数:
315
看了一下菜单果然是醉了。。头都要大了 ,这么难记。。sad
菜单分为 菜单条 菜单 菜单项
1 菜单条
Jcomponent(组件)子类 JMenubar 负责创建菜单条。
setJMenuBar(JMenuBar bar); 只能向窗口添加一个菜单条。
2 菜单
Jcomponent(组件)子类 JMenu 负责创建菜单。
JMenu(String...
分类:
其他好文 时间:
2014-09-22 22:06:33
阅读次数:
190
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:
其他好文 时间:
2014-09-22 02:12:11
阅读次数:
245
压力单位MPa、Psi和bar之间换算公式1bar=10^5PaPsi为英制压力单位.“磅力每平方英寸(1bf/in2)为1psi=6894.76 pa; 1bar等于10的5次方=10^5 pa ;1atm等于一个标准大气压=101325pa ;1at等于一project大气压(千克力每平方厘米k...
分类:
其他好文 时间:
2014-09-20 18:15:59
阅读次数:
161
Window StylesWS_BORDER Creates a window that has a thin-line border.WS_CAPTION Creates a window that has a title bar (includes the WS_BORDER style).WS...