当前位置:网站首页>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>

测试


边栏推荐
- MySQL必知必会(初级篇)
- FPGA engineer interview questions collection 121~130
- K8s Review Notes 7--K8S Implementation of Redis Standalone and Redis-cluster
- 交换机和路由器技术-29-OSPF虚链路
- 绿盾加密如何顺利切换成IP-Guard加密
- Paper Notes: BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition
- 金仓数据库 KingbaseGIS 使用手册(6.10. 几何对象操作运算符)
- 用白嫖的Adobe正版软件,减少应届毕业生的慢就业、不就业等现象
- 【嵌入式开源库】使用J-Link打印日志,让你节省一个打印串口
- [Embedded open source library] The use of MultiButton, an easy-to-use event-driven button driver module
猜你喜欢
![ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx](/img/02/3896b29a955ae84a0f0326f0d2cabf.png)
ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx

Switches and routers technologies - 30 - standard acls

Switch and Router Technology-35-NAT to PAT

HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities

Switch and Router Technology-27-OSPF Route Redistribution

ESP8266 教程3 — 通过TCP组建局域网并通信

Use Adobe genuine software for prostitution to reduce the slow employment and non-employment of fresh graduates

普林斯顿微积分读本05第四章--求解多项式的极限问题

四大函数式接口

优化是一种习惯●出发点是“站在靠近临界“的地方
随机推荐
Kong implements ban on foreign IP access
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
Let's talk programming languages together
MySQL索引
交换机和路由器技术-30-标准ACL
BGP Comprehensive Experiment
HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities
ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx
普林斯顿微积分读本05第四章--求解多项式的极限问题
每周推荐短视频:你常用的拍立淘,它的前身原来是这样的!
Delphi7学习记录-demo实例
交换机和路由器技术-26-OSPF末梢区域配置
Paper Notes: Bag of Tricks for Long-Tailed Visual Recognition with Deep Convolutional Neural Networks
四大函数式接口
2022年质量员-土建方向-通用基础(质量员)考试模拟100题及在线模拟考试
In the closing pages/uninstall (unload) sends a request to the server before the document
Unity WebGL RuntimeError: integer overflow
C语言:实用调试技巧
交换机和路由器技术-31-扩展ACL
玩转mysql之查看mysql版本号
