如下代码为啥编译出错, class Test { static int j = 0; j=10 ; public static void main(String[] args) { System.out.println("Hello World!"); } } 改为下面代码测没问题,难道j=10 要用{}括起来才算是代码块,否则JDK 当你是声明变量. class Test { static int j = 0; { j=10 ; } public static void main(String[] args) { System.out.println("Hello World!"); } }
关键词:用JAVASCRIPT在客户端启动word,并排版word的格式,形成一个报表 var title = document.forms[0].title.value //取报表标题 if (title.length") for (n =0;n") with (myTable.Cell(i+2,n+1).Range) {font.Size = 12; InsertAfter(vcontext1[n]); } } } row_count = 0; col_count = 0 myDoc.Protect(1) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19...