所有的消息框都是异步的。用户可以在交互消息之后使用回调函数去处理结果或做一些自己需要处理的事情。一、alert(警告框) 二、$.messager.show三、confirm(确认框)四、prompt(提示框)五、progress(进度框)
Layout SupportThis protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a...
分类:
其他好文 时间:
2014-09-26 12:46:58
阅读次数:
174
1.布局文件中的SeekBar:
(进度条样式 android:progressDrawable="@drawable/seekbar_bg")
(拖动按钮 android:thumb="@drawable/thumb_bar" 也可配置样式,如按下状态等;)
android:id="@+id/my_se...
分类:
其他好文 时间:
2014-09-26 11:32:18
阅读次数:
217
前面提到的上下文环境和作用域的知识,除了了解这些知识之外,还是理解闭包的基础。至于“闭包”这个词的概念的文字描述,确实不好解释,我看过很多遍,但是现在还是记不住。但是你只需要知道应用的两种情况即可——函数作为返回值,函数作为参数传递。第一,函数作为返回值如上代码,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
看了一下菜单果然是醉了。。头都要大了 ,这么难记。。sad
菜单分为 菜单条 菜单 菜单项
1 菜单条
Jcomponent(组件)子类 JMenubar 负责创建菜单条。
setJMenuBar(JMenuBar bar); 只能向窗口添加一个菜单条。
2 菜单
Jcomponent(组件)子类 JMenu 负责创建菜单。
JMenu(String...
分类:
其他好文 时间:
2014-09-22 22:06:33
阅读次数:
190