首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
梦仙仙
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
48
文章 48
沸点 0
赞
48
返回
|
搜索文章
赞
文章( 48 )
沸点( 0 )
继承
```js ``` ```js //人类构造函数 - 父类 function Person(name){ this.name = name this.say = function(){ console
原型继承
```js //Person人类 - 父类 function Person() { this.name = 'jack' } Person.prototype.eat = function () {
原型继承(传参)
```js //Person人类 - 父类 function Person(name) { this.name = name } Person.prototype.eat = function ()
继承总结
什么是继承? 重点: 子类继承父类, 子类就拥有父类属性和方法 继承实现方式? ES5实现方式: 构造函数继承 拷贝继承 原型继承
ES6 继承
```js ``` ```js class Person { constructor(name) { this.name = name } say(){ console.log(this.name,'
函数执行空间
```js function fn() { let num = 100 console.log(num); return { name: 'admin' } } fn() ```
闭包
```js ``` ```js function outer(){ let num = 100 return function inner(){ console.log('num = ',num);
jQuery介绍
官网 https://jquery.com/ 中文官网 https://jquery.cuishifeng.cn/ 里面是 jQuery 的方法大全,而且是中文的
jQuery选择器
jQuery语法 jQuery选择器 基本选择器 层次选择器 属性选择器 伪类选择器 简单伪类 子元素伪类选择器 可见伪类选择器 表单属性伪类 查找(筛选)方法 查找元素集合中第一个和最后一个元素 f
jQuery操作内容
jQuery操作内容### jQuery操作内容 <!-- $(selector).html() 获取内容 let text1 = $('h2').html() $(selector).html('新
下一页
个人成就
文章被点赞
47
文章被阅读
3,769
掘力值
238
关注了
3
关注者
3
收藏集
0
关注标签
0
加入于
2022-02-22