if (condition) {
statements;
}else if (condition) {
statements;
}else{
statements;
}
//while circulation
while (condition) {
statements;
}
do{
statements;
}while(condition);
for (initial condition; test condition; alter condition) {
statements;
}
function methodName ( parameter ... ) {
//body statements;
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |