必须。必须是根元素。包含一个或多个元素。 Attributes:xmlns:androidString,必须。定义XML的命名空间,必须是“http://schemas.android.com/apk/res/android”. android:state_pressed ...
                            
                            
                                分类:
移动开发   时间:
2014-08-29 19:45:48   
                                阅读次数:
230
                             
                    
                        
                            
                            
                                所谓的外部存储External Storage就是将数据文件保存在SD卡上。
1.但是在保存数据时需要先对SD卡的状态进行判断。
使用Environment.getExternalStorageState()可以SD卡的运行状态
分别有一下的状态
MEDIA_UNKNOWN, MEDIA_REMOVED, MEDIA_UNMOUNTED, MEDIA_CHECKING, MEDIA_NOF...
                            
                            
                                分类:
移动开发   时间:
2014-08-29 18:20:48   
                                阅读次数:
265
                             
                    
                        
                            
                            
                                修改my.cnf[mysqld]后加入default-storage-engine=InnoDB后否启动mysql时会遇到下述错误:[ERROR]Plugin‘InnoDB‘initfunctionreturnederror.[ERROR]Plugin‘InnoDB‘registrationasaSTORAGEENGINEfailed.[ERROR]Unknown/unsupportedtabletype:InnoDB[ERROR]Aborting删除mysql,da..
                            
                            
                                分类:
数据库   时间:
2014-08-29 16:14:58   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                调用NSObject的方法[selfperformSelector:@selector(run)withObject:nilafterDelay:2.0];// 2秒后再调用self的run方法使用GCD函数dispatch_after(dispatch_time(DISPATCH_TIME_NOW...
                            
                            
                                分类:
移动开发   时间:
2014-08-28 22:39:56   
                                阅读次数:
274
                             
                    
                        
                            
                            
                                var Sizzle = function( selector, context, results, seed ) {
	//context 默认为document,可以人为指定
	results = results || [];
	context = context || document;
	var origContext = context;
	//判断文档节点
	if ( context...
                            
                            
                                分类:
Web程序   时间:
2014-08-28 16:19:21   
                                阅读次数:
224
                             
                    
                        
                            
                            
                                前言
看完了前九节的学习笔记,我们已经基本上可以做一些简单的界面了,但是如果我们想要让东西不断动起来怎么办呢?答案很简单,用scheduler,我们先来看看schedule的用法吧。
scheduler用法
在之前CCNode的学习中,我们介绍了部分schedule的方法,现在我们来回顾一下:
// 返回指定计划是否正在执行
bool isScheduled(SEL_SCHED...
                            
                            
                                分类:
其他好文   时间:
2014-08-28 13:21:49   
                                阅读次数:
216
                             
                    
                        
                            
                            
                                Shoot to kill; CSS selector intent...
                            
                            
                                分类:
Web程序   时间:
2014-08-28 11:26:29   
                                阅读次数:
335
                             
                    
                        
                            
                            
                                最近一直在研究Sizzle选择器,对于其中的原理确实不得不佩服!
Sizzle中的filter方法,主要负责块表达式过滤元素集合,在方法内部会调用Sizzle.selector.fitler方法执行过滤操作。
Sizzle.filter主要分5个关键步骤:
1 使用LeftMatch确定表达式类型。
2 调用Sizzle.selectors.preFilter预过虑函数,执行过滤前的修正。...
                            
                            
                                分类:
其他好文   时间:
2014-08-27 22:05:34   
                                阅读次数:
207
                             
                    
                        
                            
                            
                                Description
The desire to explore the unknown has been a driving force in human history since the dawn of time. From the earliestdocumented accounts, ancient civilizations had explored the earth by...
                            
                            
                                分类:
其他好文   时间:
2014-08-27 13:00:27   
                                阅读次数:
256
                             
                    
                        
                            
                            
                                语法:$(selector).animate({params},speed,callback);示例一、jquery_opacity_css透明$(function () { $('.container img').css('opacity', 0.8).hover(function () {...
                            
                            
                                分类:
Web程序   时间:
2014-08-27 12:24:27   
                                阅读次数:
248