摘要:
在html网页中编写Java代码是,需要使用<%%>来编写,<%=%>表示取等号后面的值,如<%="hello"%>就会输出hello。 运行结果: 阅读全文
摘要:
在html网页中编写Java代码是,需要使用<%%>来编写,<%=%>表示取等号后面的值,如<%="hello"%>就会输出hello。 运行结果: 阅读全文
摘要:
foreach基本语法: 在Java中: 先定义数组, for(数据类型 变量名 : 数组名){ System.out.print(变量名); } 运行结果: JavaScript中foreach的语法: for(数据类型 变量名 in 数组名){ document.write(数组名[变量名]); 阅读全文
|