leiyanting

导航

 
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 48 下一页

2021年8月22日

摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> var a = 123; /* * 在js中,如果需要表示16进制的数字,则需要以0x开头 * 如 阅读全文
posted @ 2021-08-22 17:00 leiyanting 阅读(1634) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 将其他的数据类型转换为Number * 转换方式一: * 使用Number()函数 * 阅读全文
posted @ 2021-08-22 16:38 leiyanting 阅读(100) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 强制类型转换 * - 指将一个数据类型强制转换为其他的数据类型 * - 类型转换主要指, 阅读全文
posted @ 2021-08-22 16:29 leiyanting 阅读(110) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * Null(空值)类型的值只有一个,就是null * null这个值专门用来表示一个为空的 阅读全文
posted @ 2021-08-22 15:54 leiyanting 阅读(86) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * Boolean 布尔值 * 布尔值只有两个,主要用来做逻辑判断 * true * - 表 阅读全文
posted @ 2021-08-22 15:43 leiyanting 阅读(134) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 在JS中所有的数值都是Number类型, * 包括整数和浮点数(小数) * * JS中可 阅读全文
posted @ 2021-08-22 15:29 leiyanting 阅读(362) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> /* * 数据类型指的就是字面量的类型 * 在JS中一共有六种数据类型 * String 字符 阅读全文
posted @ 2021-08-22 15:07 leiyanting 阅读(1566) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 标识符 * - 在JS中所有的可以由我们自主命名的都可以称为是标识符 * - 例如:变量 阅读全文
posted @ 2021-08-22 15:00 leiyanting 阅读(75) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 字面量,都是一些不可改变的值 * 比如 :1 2 3 4 5 * 字面量都是可以直接使用 阅读全文
posted @ 2021-08-22 14:47 leiyanting 阅读(164) 评论(0) 推荐(0)
 
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* 多行注释 JS注释 多行注释,注释中的内容不会被执行,但是可以在源代码中查看 要养成良好的编 阅读全文
posted @ 2021-08-22 14:26 leiyanting 阅读(48) 评论(0) 推荐(0)
 
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 48 下一页