上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 51 下一页
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //创建一个对象 //var obj = new Object(); /* * 使用对象字面量来创 阅读全文
posted @ 2023-02-26 21:14 垂序葎草 阅读(24) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 基本数据类型 * String Number Boolean Null Undefine 阅读全文
posted @ 2023-02-26 21:13 垂序葎草 阅读(20) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> var obj = new Object(); /* * 向对象中添加属性 * 属性名: * - 阅读全文
posted @ 2023-02-26 21:11 垂序葎草 阅读(41) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * JS中数据类型 * - String 字符串 * - Number 数值 * - Boo 阅读全文
posted @ 2023-02-26 21:10 垂序葎草 阅读(20) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 向页面中输出连续的数字 */ /*var n = 1; document.write(n 阅读全文
posted @ 2023-02-26 21:09 垂序葎草 阅读(24) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 条件分支语句也叫switch语句 * 语法: * switch(条件表达式){ * ca 阅读全文
posted @ 2023-02-26 21:07 垂序葎草 阅读(34) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * if语句 * 语法二: * if(条件表达式){ * 语句... * }else{ * 阅读全文
posted @ 2023-02-26 21:04 垂序葎草 阅读(66) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 流程控制语句 * - JS中的程序是从上到下一行一行执行的 * - 通过流程控制语句可以 阅读全文
posted @ 2023-02-26 21:04 垂序葎草 阅读(29) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 我们的程序是由一条一条语句构成的 * 语句是按照自上向下的顺序一条一条执行的 * 在JS 阅读全文
posted @ 2023-02-26 21:02 垂序葎草 阅读(35) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * , 运算符 * 使用,可以分割多个语句,一般可以在声明多个变量时使用, */ //使用, 阅读全文
posted @ 2023-02-26 21:00 垂序葎草 阅读(69) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 51 下一页