摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> var str = "1a2b3c4d5e6f7"; /* * split() * - 可以将一个 阅读全文
posted @ 2023-03-01 22:22 垂序葎草 阅读(17) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 正则表达式 * - admin@atguigu.com * - admin@.com a 阅读全文
posted @ 2023-03-01 22:08 垂序葎草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //创建一个字符串 var str = "Hello Atguigu"; /* * 在底层字符串是 阅读全文
posted @ 2023-03-01 22:02 垂序葎草 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 基本数据类型 * String Number Boolean Null Undefine 阅读全文
posted @ 2023-03-01 22:00 垂序葎草 阅读(16) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * Math * - Math和其他的对象不同,它不是一个构造函数, * 它属于一个工具类不 阅读全文
posted @ 2023-03-01 21:57 垂序葎草 阅读(11) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * Date对象 * - 在JS中使用Date对象来表示一个时间 */ //创建一个Date 阅读全文
posted @ 2023-03-01 21:55 垂序葎草 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 在调用函数时,浏览器每次都会传递进两个隐含的参数: * 1.函数的上下文对象 this 阅读全文
posted @ 2023-03-01 21:52 垂序葎草 阅读(12) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function fun(a,b) { console.log("a = "+a); consol 阅读全文
posted @ 2023-03-01 21:50 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> var arr = ["孙悟空","猪八戒","沙和尚"]; var arr2 = ["白骨精 阅读全文
posted @ 2023-03-01 21:49 垂序葎草 阅读(39) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //创建一个数组 var arr = [1,2,3,2,2,1,3,4,2,5]; //去除数组中 阅读全文
posted @ 2023-03-01 21:47 垂序葎草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 一般我们都是使用for循环去遍历数组, * JS中还为我们提供了一个方法,用来遍历数组 阅读全文
posted @ 2023-03-01 21:45 垂序葎草 阅读(21) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //创建一个数组 var arr = ["孙悟空","猪八戒","沙和尚"]; /* * push 阅读全文
posted @ 2023-03-01 21:43 垂序葎草 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 内建对象 * 宿主对象 * 自定义对象 * * 数组(Array) * - 数组也是一个 阅读全文
posted @ 2023-03-01 20:23 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 垃圾回收(GC) * - 就像人生活的时间长了会产生垃圾一样,程序运行过程中也会产生垃圾 阅读全文
posted @ 2023-03-01 20:06 垂序葎草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function Person(name , age , gender){ this.name = 阅读全文
posted @ 2023-03-01 20:05 垂序葎草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 原型 prototype * * 我们所创建的每一个函数,解析器都会向函数中添加一个属性 阅读全文
posted @ 2023-03-01 19:53 垂序葎草 阅读(2) 评论(0) 推荐(0) 编辑