当前位置:网站首页>nodes服务器
nodes服务器
2022-08-11 05:12:00 【匿名热心市民】
安装
安装npm,nodejs中自带了npm,不用在安装了
安装vue脚手架
npm install -g @vue/cli
vue -V
进入脚手架图形化界面
创建成功进入仪表盘
根据需要添加插件
用webStrom关联nodejs
关联之后就不再需要在cmd窗口中操作了
打开上面创建的项目
整个项目中node_modules占用项目的空间99%。 以后拿到的项目一定没有node_modules。需要自己在本地安装。
npm install -- 安装项目需要的模块npm run serve --运行项目 nodejs
各文件作用
App.vue和main.js
注册组件
新建组件
使用自己的组件
组件间传值
传值
接收
路由跳转
定义两个测试按钮
使用路由跳转,必须在router/index.js文件中配置路由和组件间的关系
在视图中定义组件
配置router/index.js
渲染
组件被调用后,不渲染时不显示的,此标签相当于内连框架<iframe>
测试
边栏推荐
- Switches and routers technology - 26 - configure OSPF peripheral area
- [Untitled] 2022 Amination Process Exam Questions Mock Exam Question Bank and Online Mock Exam
- 交换机和路由器技术-27-OSPF路由重分发
- Optimization is a kind of habit low starting point is the "standing near the critical"
- FPGA engineer interview questions collection 111~120
- prometheus:(二)监控概述(你永远逃不出我的手掌哈哈)
- Unity WebGL RuntimeError: integer overflow
- Switch and Router Technology-34-Dynamic NAT
- [QNX Hypervisor 2.2用户手册]10.16 vdev virtio-blk
- Switch and Router Technology - 25 - OSPF Multi-Area Configuration
猜你喜欢
网络技能树
Core Data 多线程设计
Switches and routers technology - 26 - configure OSPF peripheral area
【嵌入式开源库】MultiTimer 的使用,一款可无限扩展的软件定时器
【嵌入式开源库】cJSON的使用,高效精简的json解析库
Network Skill Tree
交换机和路由器技术-32-命名ACL
关于ie下href有中文出现RFC 7230 and RFC 3986问题的研究
论文笔记:Bag of Tricks for Long-Tailed Visual Recognition with Deep Convolutional Neural Networks
Switches and routers technologies - 30 - standard acls
随机推荐
MySQL must know and must know (primary articles)
元宇宙社交应用,靠什么吸引用户「为爱发电」?
Switches and routers technology - 26 - configure OSPF peripheral area
什么是三次握手和四次挥手(清晰易懂)
ESP8266 教程3 — 通过TCP组建局域网并通信
ARM结构体系4:嵌入式硬件平台接口开发
Summary of c language fprintf, fscanf, sscanf and sprintf function knowledge points
交换机和路由器技术-34-动态NAT
async(异步)和await的使用
【无2022上海市安全员A证考试题库及模拟考试
ARM Architecture 4: Embedded Hardware Platform Interface Development
MFC 进程间通信(共享内存)
四大函数式接口
C Language: Practical Debugging Tips
Research on a Consensus Mechanism-Based Anti-Runaway Scheme for Digital Trunking Terminals
How to switch Green Shield encryption to IP-Guard encryption smoothly
Idea提升工作效率的必备技巧
2021 Network Planning Designer Afternoon Case Questions
4 模块三:文献阅读与研究方法
4 Module 3: Literature Reading and Research Methods