Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_vue
提交
239c4383
S
skill_tree_vue
项目概览
CSDN 技术社区
/
skill_tree_vue
通知
5
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_vue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
239c4383
编写于
2月 27, 2023
作者:
Z
zhaoshuangshi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
3.6、3.7章节下所有习题添加
上级
4cb41b16
变更
29
显示空白变更内容
内联
并排
Showing
29 changed file
with
317 addition
and
30 deletion
+317
-30
data/3.Vue高阶/6.过渡/1.css过渡/exercises.json
data/3.Vue高阶/6.过渡/1.css过渡/exercises.json
+1
-1
data/3.Vue高阶/6.过渡/2.javaScript过渡/exercises.json
data/3.Vue高阶/6.过渡/2.javaScript过渡/exercises.json
+1
-1
data/3.Vue高阶/6.过渡/3.组件过渡/exercises.json
data/3.Vue高阶/6.过渡/3.组件过渡/exercises.json
+1
-1
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/config.json
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/config.json
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/config.json
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/config.json
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/config.json
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.json
.../3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.md
+63
-0
data/3.Vue高阶/7.vue3基础(JS)/5.ref函数/config.json
data/3.Vue高阶/7.vue3基础(JS)/5.ref函数/config.json
+0
-9
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/config.json
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/config.json
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.md
+22
-0
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/config.json
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/config.json
+4
-1
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.json
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.json
+8
-0
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.md
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.md
+22
-0
data/tree.json
data/tree.json
+1
-10
未找到文件。
data/3.Vue高阶/6.过渡/1.css过渡/exercises.json
浏览文件 @
239c4383
{
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
null
,
"author"
:
"zhaoshuangshi"
,
"source"
:
"exercises.md"
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"notebook_enable"
:
false
,
"exercise_id"
:
"f8fbf8fd07de47f89b4f1331ed3a7df5"
"exercise_id"
:
"f8fbf8fd07de47f89b4f1331ed3a7df5"
...
...
data/3.Vue高阶/6.过渡/2.javaScript过渡/exercises.json
浏览文件 @
239c4383
{
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
null
,
"author"
:
"zhaoshuangshi"
,
"source"
:
"exercises.md"
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"notebook_enable"
:
false
,
"exercise_id"
:
"3114f486756748b3a6d351b183844cb6"
"exercise_id"
:
"3114f486756748b3a6d351b183844cb6"
...
...
data/3.Vue高阶/6.过渡/3.组件过渡/exercises.json
浏览文件 @
239c4383
{
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
null
,
"author"
:
"zhaoshuangshi"
,
"source"
:
"exercises.md"
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"notebook_enable"
:
false
,
"exercise_id"
:
"e73e42fcf8824231a41352d68cf0ee24"
"exercise_id"
:
"e73e42fcf8824231a41352d68cf0ee24"
...
...
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-c59c2a7737e041b285e2d57db6824801"
,
"node_id"
:
"vue-c59c2a7737e041b285e2d57db6824801"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"c4bce96f523e4baf84542e8fee6155f7"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/1.Vue3现状/exercises.md
0 → 100644
浏览文件 @
239c4383
# Vue3现状
Vue3是哪天发布的?
## 答案
2020 年的 9 月 18 日
## 选项
### A
2021 年的 6 月 8 日
### B
2022 年 2 月 7 日
### C
2020 年的 12 月 18 日
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-6d10a5c3df5f46529a3e12b6b13c4e29"
,
"node_id"
:
"vue-6d10a5c3df5f46529a3e12b6b13c4e29"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"e8b998328b3049e883d6973603bf07e0"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/2.构建工具Vite/exercises.md
0 → 100644
浏览文件 @
239c4383
# 构建工具Vite
Vite是一款基于什么技术实现的前端构建工具?
## 答案
Rollup
## 选项
### A
Webpack
### B
Gulp
### C
Browserify
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-f56c90e570e04ff9896d897fa6f3a7b9"
,
"node_id"
:
"vue-f56c90e570e04ff9896d897fa6f3a7b9"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"b3d74129db7a4d14b08ab52ba70122f5"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/3.setup函数/exercises.md
0 → 100644
浏览文件 @
239c4383
# setup函数
在Vue 3中,setup函数返回什么?
## 答案
一个对象
## 选项
### A
一个数组
### B
一个字符串
### C
Dom元素
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数/config.json
→
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数
、ref函数
/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-4d0274888ac942b1842228586af52671"
,
"node_id"
:
"vue-4d0274888ac942b1842228586af52671"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"032c2565f11f48abae0717ea627cdef2"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/4.reactive函数、ref函数/exercises.md
0 → 100644
浏览文件 @
239c4383
# reactive函数、ref函数
在Vue3中,以下哪些说法是关于reactive和ref函数的异同点是正确的?
## 答案
reactive函数会返回一个响应式数据对象,而ref函数会返回一个包装过的响应式数据对象,获取ref函数转化的响应式数据时可以通过.value。
## 选项
### A
reactive和ref函数都可以将JavaScript数据转换为响应式数据,没有任何区别。
### B
reactive函数可以用于对象和数组,而ref函数只能用于简单的JavaScript数据类型。
### C
ref函数可以用于对象和数组,而reactive函数只能用于简单的JavaScript数据类型。
data/3.Vue高阶/7.vue3基础(JS)/
6
.computed函数、watch函数/config.json
→
data/3.Vue高阶/7.vue3基础(JS)/
5
.computed函数、watch函数/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-f8001e5972ce4d4baf34104160ab77f7"
,
"node_id"
:
"vue-f8001e5972ce4d4baf34104160ab77f7"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"5601262d8d0443558f9ebb133e8a654e"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/5.computed函数、watch函数/exercises.md
0 → 100644
浏览文件 @
239c4383
# computed函数、watch函数
```
javaScript
<template>
<div>
<input v-model="state.firstName">
<input v-model="state.lastName">
<p>{{ fullName }}</p>
</div>
</template>
<script>
import { computed, watch, reactive } from 'vue';
export default {
setup() {
const state = reactive({
firstName: '',
lastName: ''
});
const fullName = computed(() => {
return `${state.firstName} ${state.lastName}`;
});
watch(() => state.firstName, (newVal, oldVal) => {
console.log(`firstName changed from ${oldVal} to ${newVal}`);
});
watch(() => state.lastName, (newVal, oldVal) => {
console.log(`lastName changed from ${oldVal} to ${newVal}`);
});
return {
state,
fullName
};
}
};
</script>
```
观察上面代码段,如果我们在第一个输入框中输入'几何'那控制台的打印应该是?
## 答案
firstName changed from to 几何
## 选项
### A
没有输出任何内容
### B
firstName changed from null to 几何
### C
lastName changed from to
<br
/>
firstName changed from null to 几何
data/3.Vue高阶/7.vue3基础(JS)/5.ref函数/config.json
已删除
100644 → 0
浏览文件 @
4cb41b16
{
"node_id"
:
"vue-4695a79899a54ec794d78e22da7242df"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/
7
.Vue3的生命周期函数/config.json
→
data/3.Vue高阶/7.vue3基础(JS)/
6
.Vue3的生命周期函数/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-168f219f9c304fd2ba987a61a1423339"
,
"node_id"
:
"vue-168f219f9c304fd2ba987a61a1423339"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"d8bb330b4a4c4538b162af8c84ce214f"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/6.Vue3的生命周期函数/exercises.md
0 → 100644
浏览文件 @
239c4383
# Vue3的生命周期函数
在Vue3中,以下哪个选项不是生命周期函数?
## 答案
beforeRender
## 选项
### A
beforeCreate
### B
beforeMount
### C
unmounted
data/3.Vue高阶/7.vue3基础(JS)/
8
.Vue3获取DOM、操作组件/config.json
→
data/3.Vue高阶/7.vue3基础(JS)/
7
.Vue3获取DOM、操作组件/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-f8013635f620485c88840675b2d00e7c"
,
"node_id"
:
"vue-f8013635f620485c88840675b2d00e7c"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"d9f20645d6554446b530296a5dcb993e"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/7.Vue3获取DOM、操作组件/exercises.md
0 → 100644
浏览文件 @
239c4383
# CSS过渡
在Vue3中,以下哪个选项是可以获取DOM和组件元素?
## 答案
通过ref声明响应式数据,通过在DOM标签上添加ref属性来绑定该该数据,即可获取DOM或者组件。
## 选项
### A
通过在DOM标签上添加ref属性值,在方法中通过this.$refs来获取。
### B
this.$emit
### C
this.$el
data/3.Vue高阶/7.vue3基础(JS)/
9
.Vue3组件通信/config.json
→
data/3.Vue高阶/7.vue3基础(JS)/
8
.Vue3组件通信/config.json
浏览文件 @
239c4383
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
"node_id"
:
"vue-67d68f772c8245a094b9ed14745c7f86"
,
"node_id"
:
"vue-67d68f772c8245a094b9ed14745c7f86"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"exercises.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.json
0 → 100644
浏览文件 @
239c4383
{
"type"
:
"code_options"
,
"author"
:
null
,
"source"
:
"exercises.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"7a3c6b97946647c49e121d8c999c4128"
}
\ No newline at end of file
data/3.Vue高阶/7.vue3基础(JS)/8.Vue3组件通信/exercises.md
0 → 100644
浏览文件 @
239c4383
# Vue3组件通信
在Vue3中,以下哪个选项不能用于父组件向子组件传递数据?
## 答案
$children
## 选项
### A
provide / inject
### B
props
### C
localStorage
data/tree.json
浏览文件 @
239c4383
...
@@ -1525,7 +1525,7 @@
...
@@ -1525,7 +1525,7 @@
}
}
},
},
{
{
"reactive函数"
:
{
"reactive函数
、ref函数
"
:
{
"node_id"
:
"vue-4d0274888ac942b1842228586af52671"
,
"node_id"
:
"vue-4d0274888ac942b1842228586af52671"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
...
@@ -1533,15 +1533,6 @@
...
@@ -1533,15 +1533,6 @@
"keywords_forbid"
:
[]
"keywords_forbid"
:
[]
}
}
},
},
{
"ref函数"
:
{
"node_id"
:
"vue-4695a79899a54ec794d78e22da7242df"
,
"keywords"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
},
{
{
"computed函数、watch函数"
:
{
"computed函数、watch函数"
:
{
"node_id"
:
"vue-f8001e5972ce4d4baf34104160ab77f7"
,
"node_id"
:
"vue-f8001e5972ce4d4baf34104160ab77f7"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录