回到今天模型-视图-事件的话题,Data和View分离后必然需要有Event事件的监听和派发机制来建立起数据绑定,我控制欲比较强不是很喜欢AngularJS那种dirty checking的机制,有事件变化我希望马上被通知到,做我该做的处理,至于有人担心性能问题那是多虑了,图形组件发展这么多年已积累...
分类:
其他好文 时间:
2014-08-18 10:46:13
阅读次数:
155
HAS_ONE(值得注意的是,这是主动关联,外键必须是被关联的表): 1 array(//关联的数据表 7 'mapping_type'=>self::HAS_ONE,//一对一 8 'class_name' => 'artag',//关...
分类:
Web程序 时间:
2014-08-17 22:40:02
阅读次数:
407
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-17 16:44:42
阅读次数:
179
如果将Struts2的filter-mapping配置成 struts2 /* 的话,struts2将可以处理无后缀的action请求,如/demo/hello.action 和/demo/hello 是同样的效果。这样有时会出现一些问题,将有一些组件映射为无后缀的请求拦截了,...
分类:
其他好文 时间:
2014-08-16 17:02:10
阅读次数:
220
1 package com.lw.leet2; 2 3 /** 4 * @ClassName:Solution 5 * @Description: 6 * Evaluate the value of an arithmetic expression in Reverse P...
分类:
其他好文 时间:
2014-08-16 13:44:40
阅读次数:
211
问题描述:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".解题思路:先利用split()方法将句子按空格分为...
分类:
其他好文 时间:
2014-08-16 11:08:40
阅读次数:
229
1 package com.lw.leet1; 2 3 import java.util.Stack; 4 5 /** 6 * @ClassName:Solution 7 * @Description: 8 * Reverse Words in a String 9 ...
分类:
其他好文 时间:
2014-08-15 22:22:49
阅读次数:
205
#include #include #include int main(){ using namespace std; int casts[10]={6,7,2,9,4,11,8,7,10,5}; vector dice(10); copy(casts,casts+10,di...
分类:
其他好文 时间:
2014-08-15 20:57:09
阅读次数:
195
首推方法: public void convertStr(String str){? ??????? //将String 对象转换为可改变的StringBuffer类对象? ??????? //然后调用StringBuffer类的reverse()方法实现反转? ??????? St...
分类:
编程语言 时间:
2014-08-15 08:19:07
阅读次数:
197
ZjDroid是什么?
请看这篇文章:
Android动态逆向分析工具ZjDroid--脱壳神器
今天第一次使用这个的时候出现了下图所示的错误:
提示:import com.android.reverse.R;没有这个类
之后clean了之后再从新build还是没有出现,gen文件夹下依然没有R.java这...
分类:
编程语言 时间:
2014-08-15 00:04:26
阅读次数:
272