摘要: day16 JavaScript中的函数 函数的作用 通过使用function声明,后跟一组参数以及函数体, 语法: functionfunctionName([arg0, arg1, argn]){ statements } 说明: 1.funtionName是要定义的函数名,属于标识符。 2.[ 阅读全文
posted @ 2018-02-22 19:07 cheinlbb 阅读(112) 评论(0) 推荐(0) 编辑
摘要: day15 javaScript条件语句 分支语句 条件语句 if语句基本用法 语法一: if(condition){ statement1; } alert() 语法:alert() 功能:弹出警告对话框 语法二: if(condition){ statement1; }else{ stateme 阅读全文
posted @ 2018-02-22 16:09 cheinlbb 阅读(123) 评论(0) 推荐(0) 编辑