Watcher设置是开发中最常见的,需要搞清楚watcher的一些基本特征,对于exists、getdata、getchild对于节点的不同操 作会收到不同的watcher信息。对父节点的变更以及孙节点的变更都不会触发watcher,而对watcher本身节点以及子节点的变更会触发 watcher,...
分类:
其他好文 时间:
2014-09-28 01:14:20
阅读次数:
289
package prac_1;
/**
* Title: 接口和抽象函数
* Description: 演示继承抽象函数和实现接口
* Copyright: Copyright (c) 2014
* Filename: Play.java
* @author 王海涛
* @version 0.1
*/
//接口
interface player
{
int flag = ...
分类:
编程语言 时间:
2014-09-27 17:40:00
阅读次数:
181
输出用print加上字符串,就可以向屏幕上输出指定的文字。比如输出'hello, world',用代码实现如下:>>> print 'hello, world'print语句也可以跟上多个字符串,用逗号“,”隔开,就可以连成一串输出:>>> print 'The quick brown fox', ...
分类:
其他好文 时间:
2014-09-27 02:35:59
阅读次数:
245
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:
其他好文 时间:
2014-09-27 00:10:38
阅读次数:
444
#include #include #include void quick_sort(int data[], int, int);int partition(int data[], int, int);int main( int argc, char* argv[] ) { int data[8] ...
分类:
其他好文 时间:
2014-09-27 00:09:38
阅读次数:
308
今天在给Echarts折线图中的数据点增加点击事件的时候发现...
分类:
其他好文 时间:
2014-09-26 14:49:28
阅读次数:
288
需要注意的是win平台加载图片,用到"file:///"参考来源 StartCoroutine(SaveThePlayerColorImage(320));//save the color image when the player pass the wall IEnumerator Save...
分类:
其他好文 时间:
2014-09-26 12:39:08
阅读次数:
238
情形:两个表,cms_mode是主表,cms_model_field是子表,cms_model_field的model_id字段关联到cms_model的主键。## Source for table cms_model#DROP TABLE IF EXISTS `cms_model`;CREATE ...
分类:
系统相关 时间:
2014-09-26 10:05:59
阅读次数:
237
很简单,通过调用系统的intent,我们可以打开各种文件,不熟悉的朋友可以了解下action、datatype、uri的相关知识。通用方法如下:public static Intent openFile(String filePath){
File file = new File(filePath);
if(!file.exists()) return null;
/* 取得扩展名...
分类:
移动开发 时间:
2014-09-26 00:47:18
阅读次数:
306
用ContentProvider查询,有时候不太灵。。就像下面的代码,数据库中存在该数据,但是查不出来。原因可能是该字段没有声明类型。。
如下:
private final static String SQL_CREATE_TABLE_INSTALLED =
"CREATE TABLE if not exists " + TABLE_INSTALLED + " ( "...
分类:
数据库 时间:
2014-09-25 16:06:59
阅读次数:
205