国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

vue.js

2023-07-07 20:23 作者:大象有形vans  | 我要投稿

1、在node.js下載

鏈接

https://nodejs.cn/

選擇18.16.1 文檔


2、打開cmd


3、安裝淘寶鏡像

使用淘寶鏡像的命令安裝:

npm install -g cnpm --registry=https://registry.npmmirror.com


4、安裝腳手架

cnpm install -g @Vue/cli


5、建立項(xiàng)目

vue create 項(xiàng)目名字 選默認(rèn)選項(xiàng)? node -v 查看node版本號 npm -v 查看npm版本號 vue -V? 查看腳手架版本號


打開建立的文件夾

1、在vue應(yīng)用-終端-新建終端

復(fù)制以下命令

npm i vant


2、搜索vant4(可忽略)


3、在App.vue復(fù)制以下代碼 (詳細(xì)可見三)點(diǎn)擊左欄(src)

<link

? rel="stylesheet"

? href="https://fastly.jsdelivr.net/npm/vant@4/lib/index.css"

/>


4、在main.js更改代碼 (詳細(xì)可見三)

import { Button } from 'vant';

createApp(App).use(Button).mount('#app')


5、在HelloWord.vue操作 (詳細(xì)可見三)點(diǎn)擊左欄(src)里的(compoents)

將<template>

</template>里面的<div>刪除復(fù)制以下代碼

<van-button type="primary">主要按鈕</van-button>

<van-button type="success">成功按鈕</van-button>

<van-button type="default">默認(rèn)按鈕</van-button>

<van-button type="warning">警告按鈕</van-button>

<van-button type="danger">危險(xiǎn)按鈕</van-button>


6、在終端復(fù)制以下命令。

npm run serve


App.vue

1 <template>

2? <img alt="Vue logo" src="./assets/logo.png">

3? <HelloWorld msg="Welcome to Your Vue.js App"/>

4? <link

5? rel="stylesheet"

6? href="https://fastly.jsdelivr.net/npm/vant@4/lib/index.css"

7 />

8 </template>


main.js

import { createApp } from 'vue'

import App from './App.vue'

import { Button } from 'vant';

createApp(App).use(Button).mount('#app')


HelloWord.vue

<template>

?<van-button type="default">默認(rèn)按鈕</van-button>

<van-button type="primary">主要按鈕</van-button>

<van-button type="info">信息按鈕</van-button>

<van-button type="warning">警告按鈕</van-button>

<van-button type="danger">危險(xiǎn)按鈕</van-button>

</template>



vue.js的評論 (共 條)

分享到微博請遵守國家法律
武义县| 工布江达县| 东辽县| 宜春市| 禹城市| 县级市| 武定县| 红桥区| 山东| 拉萨市| 承德县| 黑山县| 二连浩特市| 麦盖提县| 合江县| 贡山| 衡山县| 霍山县| 大港区| 喜德县| 施甸县| 庄浪县| 新津县| 台南县| 庆云县| 宁南县| 军事| 龙门县| 乌拉特中旗| 宁陵县| 新疆| 丰县| 乌鲁木齐市| 诏安县| 赤水市| 长岛县| 福贡县| 布拖县| 阆中市| 西藏| 石棉县|