在用WinJS开发的过程中,比如添加一个Pivot控件,添加PivotItem1,PivotItem2...在js文件中执行对应的PivotItem语句,会发现这样一种情况:PivotItem1是程序启动后首先呈现在界面中的元素,而Item2、Item3还没有被初始化,这时候如果js中单纯的去数据绑...
create table products( productid number(10) not null, name varchar2(255), description CLOB);查询语句:select t.productid, t.name from products twhere dbms_...
分类:
数据库 时间:
2015-03-03 13:12:19
阅读次数:
181
jetty 类似tomcat 可以项目整体发布 (拷贝进去)区别可以嵌入 近java代码启动。main 启动实例。一,全main 配合springMVC (java代码指定 处理类Holder) 1 /*初始化服务s*/ 2 Resource fileserver_xml=null;...
分类:
其他好文 时间:
2015-03-03 13:06:14
阅读次数:
99
HashSet set = new HashSet();
if(null!=goodsDtlList){
for(GoodsRecordDtl grd : goodsDtlList){
if(set.contains(grd.getMaterialNo())==true){...
分类:
编程语言 时间:
2015-03-03 11:50:45
阅读次数:
130
修改方法:
CallCardFragment.java 的方法 setDrawableToImageView()
如下code,注释掉 if 条件及 else部分,请验证效果:
// if (current == null) {
Log.d(this, "[setDrawableToImageView]current is null...
分类:
其他好文 时间:
2015-03-03 11:44:05
阅读次数:
143
原生JS提供了typeof操作符来判断类型,判断基本类型时没问题,但当判断复杂类型时便有点不尽人意。基本类型有哪些?众说纷纭,争议的是null和function算不算基本类型?个人觉得能被typeof出正确类型的都是基本类型,来看以下代码:/*基本类型*/alert(typeof nudefined...
分类:
编程语言 时间:
2015-03-03 11:38:39
阅读次数:
203
'希亚', 'Age'=>20 );$jsonencode = json_encode($arr);echo $jsonencode;?>程序运行结果如下:{"Name":null,"Age":20}json_encode 函数中中文被编码成 null 了,Google...
分类:
Web程序 时间:
2015-03-03 11:31:34
阅读次数:
170
int i = -1;bool b = int.TryParse(null, out i);执行完毕后,b等于false,i等于0,而不是等于-1,切记。int i = -1;bool b = int.TryParse("123", out i);执行完毕后,b等于true,i等于123;1、(in...
分类:
其他好文 时间:
2015-03-03 11:28:09
阅读次数:
127
可在父窗体中定义一个全局变量 public static Form form; 然后在秀出子窗体的点击事件中增加加下代码 if (form == null) { //窗体不存在时,实例化子窗体,并显示出来,CurrentBalance为子窗体名 form = new CurrentBalance()...
df<-data.frame( x=c(3,1,5), y=c(2,4,6), label=c("a","b","c"))p<-ggplot(df,aes(x,y))+xlab(NULL)+ylab(NULL)p+geom_point()+labs(title="geom_point")p+g...
分类:
其他好文 时间:
2015-03-03 11:12:41
阅读次数:
234