on(events,[selector],[data],fn)selector:是祖先元素的子元素,这样祖先元素就可以处理这个选择器所对应的对象的所有事件
$(".comment_bar").on("click","button",function(){
var aa = $(this).parents(".comment_bar").find(".reply_list");
...
分类:
Web程序 时间:
2014-09-11 17:23:52
阅读次数:
276
在Android Programming The Big Nerd Ranch Guide书中,讲解上下文菜单的实现,添加一个删除菜单。在Honeycomb发布前的设备里,上下文的action都是以悬浮的上下文菜单形式呈现。在之后的设备里,推荐用上下文的action bar的方式去呈现上下文的act...
分类:
移动开发 时间:
2014-09-11 04:30:01
阅读次数:
405
A progress bar which displays progress as passage through a simple maze.
分类:
其他好文 时间:
2014-09-10 21:07:21
阅读次数:
300
如果只是单纯的隐藏状态栏,那么是在默认情况下,只需要重新实现两个新方法- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; //UIStatusBarStyleDefault =...
分类:
移动开发 时间:
2014-09-10 17:17:20
阅读次数:
258
#include
#include
#include
#include
#include
static struct proc_dir_entry *root, *jiffies_file, *kbuf_file, *symlink,
*symlink;
//struct fb_data_t foo_data,bar_data;
static ssize_...
分类:
其他好文 时间:
2014-09-10 12:36:10
阅读次数:
263
A status bar is the bar showing signal, battery and time on the top of the phone's screen. In WP8.1 we it's called status bar, but in WP8.0 it's calle...
分类:
其他好文 时间:
2014-09-09 22:49:49
阅读次数:
186
1. #define保护
所有头文件都应该使用#define 防止头文件被多重包吨(multiple inclusion),命名格式为:
___H_
为保证唯一性,头文件的命名应基亍其所在项目源代码树的全路径。例如,项目foo 中的头文件
foo/src/bar/baz.h按如下方式保护:
#ifndef FOO_BAR_BAZ_H_
#define FOO_...
分类:
编程语言 时间:
2014-09-09 21:35:40
阅读次数:
324
因为Search Bar的游标颜色和Tint颜色是统一的,如果要想将游标的颜色设置为其他颜色,则需要到textfiled内部去修改,对于字体也是同样。
实现代码:
- (void)setSearchBarTextfiled:(UISearchBar *)searchBar{
for (UIView *view in searchBar.subviews){
for (i...
分类:
移动开发 时间:
2014-09-09 18:20:09
阅读次数:
354
iOS7中修改StatusBar的显示颜色效果图如下:在iOS7中想手动修改statusBar的颜色,第一步需要做的就是在plist文件中设置View controller-based status bar appearance值为NO第二步就是在代码中实现了,如下所示://// RootView....
分类:
移动开发 时间:
2014-09-09 17:59:09
阅读次数:
241