摘要: 1 基本数据类型 字符串 数字 布尔 空null, 未定义undefined Symbol (es6引入,表示独一无二的值)共6种基本类型 2 引用数据类型(对象类型) 对象(JSON送对象) 数组 函数 RegExp正则 日期Date 5类 3 变量没有类型可言,只有对象才有类型可言 4 小心: 阅读全文
posted @ 2022-07-06 23:30 -和时间赛跑- 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1 通过prototype原型对象继承 function Hello(){ this.a = "吃饭了" this.b = function(){ console.log(" 123") }}function Test(){ this.c = function(){ console.log("-cc 阅读全文
posted @ 2022-07-06 22:11 -和时间赛跑- 阅读(14) 评论(0) 推荐(0) 编辑