提交 07b39db0 编写于 作者: Z zhaoss

删除已构建部分,准备重构

上级 90bf3948
{
"node_id": "vue-bb040b96110d48d3931b917f7ebe1047",
"keywords": [
"NPM简介",
"NPM是什么",
"Node安装",
"NPM安装"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"NPM简介",
"NPM安装"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "4347d40041b94f21ac49be17799648a1"
}
\ No newline at end of file
# NPM的安装
相信小伙伴们都知道学习Vue之前我们需要了解并掌握npm,那么请指出下面哪位同学的描述是<span style="color:red">错误</span>的。<br/><br/>
<!-- <font size="2">
小知识:Hello World究竟从何而来?
<div style="text-indent:2em;">Hello, World最早是由 Brian Kernighan 创建的。1978年,Brian Kernighan写了一本名叫《C程序设计语言》的编程书,在程序员中广为流传。他在这本书中第一次引用的Hello World程序,源自他在1973年编写的一部讲授B语言的编程教程。</div>
<div style="text-indent:2em;">但是非常不幸的是,当 Forbes India 杂志采访他的时候,他自己对这段传奇故事中一些记忆已经有点儿模糊了。当他被问及为什么选择『Hello, World!』时,他回答说,『我只记得,我好像看过一幅漫画,讲述一枚鸡蛋和一只小鸡的故事,在那副漫画中,小鸡说了一句‘Hello World’』。</div>
<div style="text-indent:2em;">鉴于Hello World这个计算机程序的广泛流行程度,这个起因看起来还是蛮合适的。</div>
<div style="text-indent:2em;">尽管没人能够科学地解释为什么Hello World如此地流行,但是,Hello, World程序的确在计算机发展历史上成为了一个具有重要意义的里程碑。</div>
</font> -->
## 答案
小心同学:我用 npm -v 命令来检测我的npm版本
## 选项
### A
小几同学:我用 npm run 命令来检测我的npm版本
### B
小何同学:我用 npm -i 命令来检测我的npm版本
### C
小凉同学:我用 npm -V 命令来检测我的npm版本
{
"node_id": "vue-2350e9245c824ea2aef6edd98ee40f0e",
"keywords": [
"Node是什么",
"Node安装",
"Node环境配置"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"Node安装",
"Node环境配置"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "540c62bba11e4f52801773b7f1880411"
}
\ No newline at end of file
# Node环境配置
下列哪条命令执行可以<span style="color:green">全局</span>安装Vue Cli?<br/><br/>
<font size="2">
几何解惑:在配置Node环境时通常会设置用户变量、系统变量、环境变量,那么究竟为什么呢?
<div style="text-indent:2em;">设置环境变量的作用:任意目录下都可以使用NPM命令</div>
<div style="text-indent:2em;">设置为系统变量与用户变量的区别:对于系统变量任何用户都可以使用,对于用户变量只有该用户登录才可使用</div>
</font>
<br/>
## 答案
npm install @vue/cli -g
## 选项
### A
npm install @vue/cli -S
### B
npm install @vue/cli -D
### C
npm install @vue/cli -e
{
"node_id": "vue-d7ef53c8a8f846f19764f86f97499768",
"keywords": [
"NPM初始化Vue项目",
"NPM初始化项目"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"NPM初始化项目"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "dca0b0343bc7424c944bbea4f73f5ebc"
}
\ No newline at end of file
# 利用NPM初始化项目
当我们初始化一个Vue项目后,需要执行npm install命令去下载依赖,那么执行这行命令是通过下列哪个文件中的依赖去进行自动安装下载的?<br/><br/>
## 答案
package.json
## 选项
### A
package-lock.json
### B
node_modules
### C
vue.config.js
{
"node_id": "vue-f8b124308ba343b0a051c8e6e766a2c3",
"keywords": [
"NPM下载依赖",
"NPM安装js模块",
"npm install"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"NPM下载"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "b884f7d652884b5a878a64291c9c0961"
}
\ No newline at end of file
# NPM安装模块
```js
"dependencies": {
"axios": "^0.19.0",
"echarts": "~4.4.0",
"element-ui": "latest"
}
```
<br/>
上面这段代码是来自某项目中的package.json文件,请选择对于依赖项的版本号前面符号描述<span style="color:green">正确</span>的一项<br/><br/>
## 答案
“~” 表示在安装echarts时安装的版本不一定是4.4.0而是4.4.x,也就是说小版本号会依据最新的来安装,大版本号和次要版本号不变;
“^” 表示在安装axios时安装的版本不一定是0.19.0而是0.x.x版本,也就是说次要版本号和小版本号都为最新,大版本号不会变;
latest 指明安装最新版本
## 选项
### A
“~” 表示在安装echarts时安装的版本不一定是4.4.0而是4.x.x,也就是说次要版本号和小版本号都为最新,大版本号不会变;
“^” 表示在安装axios时安装的版本不一定是0.19.0而是0.19.x版本,也就是说小版本号会依据最新的来安装,大版本号和次要版本号不变;
latest 指明安装最新版本
### B
“~” 表示在安装echarts时安装的版本不一定是4.4.0而是4.x.x,也就是说次要版本号和小版本号都为最新,大版本号不会变;
“^” 表示在安装axios时安装的版本不一定是0.19.0而是0.19.x版本,也就是说小版本号会依据最新的来安装,大版本号和次要版本号不变;
latest 指明安装最稳定版本
### C
三个选项都不对
{
"node_id": "vue-66e29683f0a448fca7158e030028f2c1",
"keywords": [
"开发环境和生产环境的依赖安装",
"npm安装依赖环境"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "37ce3e6fe75d47f1ad95c25f19ad0543"
}
\ No newline at end of file
# 生产环境和开发环境的模块安装
我们通过npm install默认命令进行安装时,是将依赖安装到下列哪个环境?<br/><br/>
## 答案
生产环境
## 选项
### A
开发环境
### B
测试环境
### C
三个选项都不对
{
"node_id": "vue-fa34caf61ce9405ab91d679c12fea50f",
"keywords": [
"cnpm安装"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"cnpm"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "82494bef3336468ebcf1ae9409e85089"
}
\ No newline at end of file
# CNPM安装依赖
npm安装插件是从NPM官网下载对应的插件包,该网站的服务器在国外,经常会出现下载缓慢或出现异常,这时便需要找到另外的方法提供稳定的下载,这个方法就是cnpm。那么cnpm是通过什么来进行下载的呢?<br/><br/>
## 答案
淘宝镜像
## 选项
### A
京东镜像
### B
腾讯云
### C
华为云
\ No newline at end of file
{
"node_id": "vue-6558b9e1ee0a46e2a5f8be815e346583",
"keywords": [
"npm常用命令"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"npm常用命令"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "zhaoss",
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "25add1c0042b4d60922302c7d00ce043"
}
\ No newline at end of file
# 常用NPM命令
我们可以通过npm install -g <module-name> 命令安装全局依赖,那么关于卸载全局依赖下列说法正确的是?<br/><br/>
## 答案
可以通过执行 npm uninstall -g 来卸载全局依赖
## 选项
### A
可以通过执行 npm uninstall -g 或 cnpm uninstall -g 来卸载全局依赖
### B
可以通过执行 npm uninstall 来卸载全局依赖
### C
三个选项都不对
{
"node_id": "vue-be2dba1376514fd3bc4487b243115bad",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-f64079b76d8641818dc59c509decc2c2",
"keywords": [
"VS Code开发工具特点与安装"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [
"VS Code"
],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": null,
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "ed124b7c2784408ba13fa3fe31a98714"
}
\ No newline at end of file
# VS Code开发工具特点与安装
下列属于 Vs Code 开发工具特点的是?<br/><br/>
## 答案
三个选项都正确
## 选项
### A
跨平台——支持 Windows、macOS、Linux操作系统
### B
轻量级
### C
开源、插件丰富、功能强大、性能优越
{
"node_id": "vue-c313e3cb74fc465393dbc6c599b55cd8",
"keywords": [
"VS Code常用插件安装"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": null,
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "ab2801d7d5bc45d0823994aa920f0c93"
}
\ No newline at end of file
# VS Code常用插件
下列 Vs Code 插件中,能够作用于HTML标签提示、补全的是?<br/><br/>
## 答案
HTML Snippets
## 选项
### A
Open In Browser
### B
IntelliSense For CSS
### C
Vue 2 Snippets
{
"node_id": "vue-140205e8d69d4861bb7a585d6773f697",
"keywords": [
"VS Code常用设置"
],
"children": [],
"export": [
"exercises.json"
],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": null,
"source": "exercises.md",
"notebook_enable": false,
"exercise_id": "b86fe07690af4a56982f00d2c7fca7ca"
}
\ No newline at end of file
# VS Code常用设置
编写代码后,保存的一般方法是按Ctrl+S快捷键,此外我们还可以选择 文件=》自动保存 命令即可设置自动保存<br/><br/>
以上对Vs Code常用设置说法是否正确?<br/><br/>
## 答案
正确
## 选项
### A
错误
{
"node_id": "vue-35ca23acc9734146a5d3950c7334b960",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-f224b4fab875408f87616f1b6c7ff2c3",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-c3da28a9da434f719e9e2d50f4c45c00",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-f9c154068b00429a853a2175a1536224",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-b9cb054e0d254698bbad2da3ba63d6fe",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-8b38c8d167fd4f76be2c79d571417682",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-047c02946eb947089a6d19cf0a3277b0",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "vue-3e46d75ccfec4e198ea1c7da924d0b87",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{ {
"node_id": "vue-8af06c6bc7c042328de3b0ecdb8d58cb", "node_id": "vue-909b33594f294928b5d2e94f422fb513",
"keywords": [], "keywords": [],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [] "keywords_forbid": []
......
...@@ -5,267 +5,9 @@ ...@@ -5,267 +5,9 @@
"children": [ "children": [
{ {
"Vue初阶": { "Vue初阶": {
"node_id": "vue-8af06c6bc7c042328de3b0ecdb8d58cb", "node_id": "vue-909b33594f294928b5d2e94f422fb513",
"keywords": [], "keywords": [],
"children": [ "children": [],
{
"NPM的安装与使用": {
"node_id": "vue-be2dba1376514fd3bc4487b243115bad",
"keywords": [],
"children": [
{
"NPM简介与安装": {
"node_id": "vue-bb040b96110d48d3931b917f7ebe1047",
"keywords": [
"NPM简介",
"NPM是什么",
"Node安装",
"NPM安装"
],
"children": [],
"keywords_must": [
"NPM简介",
"NPM安装"
],
"keywords_forbid": []
}
},
{
"配置Node.js环境": {
"node_id": "vue-2350e9245c824ea2aef6edd98ee40f0e",
"keywords": [
"Node是什么",
"Node安装",
"Node环境配置"
],
"children": [],
"keywords_must": [
"Node安装",
"Node环境配置"
],
"keywords_forbid": []
}
},
{
"利用NPM初始化项目": {
"node_id": "vue-d7ef53c8a8f846f19764f86f97499768",
"keywords": [
"NPM初始化Vue项目",
"NPM初始化项目"
],
"children": [],
"keywords_must": [
"NPM初始化项目"
],
"keywords_forbid": []
}
},
{
"NPM安装模块": {
"node_id": "vue-f8b124308ba343b0a051c8e6e766a2c3",
"keywords": [
"NPM下载依赖",
"NPM安装js模块",
"npm install"
],
"children": [],
"keywords_must": [
"NPM下载"
],
"keywords_forbid": []
}
},
{
"生产环境和开发环境的模块安装": {
"node_id": "vue-66e29683f0a448fca7158e030028f2c1",
"keywords": [
"开发环境和生产环境的依赖安装",
"npm安装依赖环境"
],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"使用CNPM命令安装": {
"node_id": "vue-fa34caf61ce9405ab91d679c12fea50f",
"keywords": [
"cnpm安装"
],
"children": [],
"keywords_must": [
"cnpm"
],
"keywords_forbid": []
}
},
{
"常用NPM命令": {
"node_id": "vue-6558b9e1ee0a46e2a5f8be815e346583",
"keywords": [
"npm常用命令"
],
"children": [],
"keywords_must": [
"npm常用命令"
],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"VS Code开发工具的安装与配置": {
"node_id": "vue-35ca23acc9734146a5d3950c7334b960",
"keywords": [],
"children": [
{
"VS Code开发工具特点与安装": {
"node_id": "vue-f64079b76d8641818dc59c509decc2c2",
"keywords": [
"VS Code开发工具特点与安装"
],
"children": [],
"keywords_must": [
"VS Code"
],
"keywords_forbid": []
}
},
{
"VS Code常用插件安装": {
"node_id": "vue-c313e3cb74fc465393dbc6c599b55cd8",
"keywords": [
"VS Code常用插件安装"
],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"VS Code常用设置": {
"node_id": "vue-140205e8d69d4861bb7a585d6773f697",
"keywords": [
"VS Code常用设置"
],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"常用快速编辑技巧": {
"node_id": "vue-5b755e669a7041d3ba294c9448671eec",
"keywords": [
"VsCode常用快速编辑技巧"
],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"Vue的核心概念": {
"node_id": "vue-3e46d75ccfec4e198ea1c7da924d0b87",
"keywords": [],
"children": [
{
"初探Vue.js": {
"node_id": "vue-f224b4fab875408f87616f1b6c7ff2c3",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"Vue.js的优点与核心思想": {
"node_id": "vue-c3da28a9da434f719e9e2d50f4c45c00",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"Vue与React、Angular对于": {
"node_id": "vue-f9c154068b00429a853a2175a1536224",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"MVVM概述": {
"node_id": "vue-b9cb054e0d254698bbad2da3ba63d6fe",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"引入Vue": {
"node_id": "vue-8b38c8d167fd4f76be2c79d571417682",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"首秀Vue程序": {
"node_id": "vue-047c02946eb947089a6d19cf0a3277b0",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"Vue常用指令": {
"node_id": "vue-5e3332f2471c4575b993b900a4d31efc",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"事件修饰符、按键修饰符": {
"node_id": "vue-0d8d320a2720495abe7eac7ffdaf40e4",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"计算属性与侦听器、Vue实例的生命周期": {
"node_id": "vue-11d08c15ef3a4632a516fc9a6a58c5ee",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [] "keywords_forbid": []
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册