自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 ES7新特性 includes与 幂运算符 **

ES7新特性 includes includes 查找数组里是否包含这个元素, 有返回 return true, 没有返回 return false。const arr= [1, 2, 3, 4, 5]console.log(arr.includes("1")) //return trueconsole.log(arr.includes("10")) //return falseES7新特性 ** **取数值的xx次方,等同于Math.pow()consol

2022-03-12 13:02:38 363

原创 rest 参数 与 扩展运算符 [...]

// rest 参数,用于获取函数的实参,用来代替 argumentsfunction date(...args) { console.log(args);}date("我", "你", "他");// rest 参数必须要放到参数最后function fn(a, b, ...args) { console.log(a); console.log(a); console.log(args);}fn(1, 2, 3, 4, 5, 6, 7)//扩展运算符

2022-03-11 11:13:47 156

原创 圣杯模式 JS继承

圣杯模式 JS继承//圣杯模式 //JS继承function inherit(Target, Origin) { function F() {}; //中间值,这样son可以自己构造自己的属性,而且不改变father的空间。 F.prototype = Origin.prototype; Target.prototype = new F(); Target.prototype.constuctor = Target; //让constuctor,指向自己

2022-03-08 16:11:03 162

原创 大家好

<?phpecho "大家好";?>

2021-03-25 11:45:14 65

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除