当前位置: 首页 > news >正文

有哪些做统计销量的网站一个品牌的策划方案

有哪些做统计销量的网站,一个品牌的策划方案,怎么注册中文域名,一个主机怎么做两个网站环境准备 介绍:create-vue是Vue官方提供的最新的脚手架工具,用于快速生成一个工程化的Vue项目create-vue提供如下功能: 统一的目录结构 本地调试 热部署 单元测试 集成打包依赖环境:NodeJS 安装NodeJS 一、 创建vue工程 npm 类…

环境准备

  • 介绍:create-vue是Vue官方提供的最新的脚手架工具,用于快速生成一个工程化的Vue项目
  • create-vue提供如下功能:
    统一的目录结构
    本地调试
    热部署
    单元测试
    集成打包
  • 依赖环境:NodeJS
    安装NodeJS

一、 创建vue工程

npm 类似maven
npm init vue@latest
根据命令提示
cd 项目名
npm install
然后用vscode打开项目

二、Vue项目的目录结构

在这里插入图片描述
vite.config.js :Vue项目的配置信息,如:端口号等
package.json :等同于maven里的pom文件,配置文件,包括项目名、版本号、依赖包、版本等。
package-lock.json :项目配置文件(不需要修改)
index.html :默认首页
public: 公共资源
node_modules :下载的第三方包存在目录
src:源代码存放目录
在这里插入图片描述
src下面又有四个目录
assets : 静态资源目录、存放图片、字体
components:组件目录、存放通用组件
App.vue:根组件
main.js :入口文件

三、Vue项目-启动

执行命令 npm run dev ,就可以启动项目
然后输入http://127.0.0.1:5137
重点编写Vue文件
主要包含三部分内容

控制模板的数据及行为
<script setup>import {ref} from 'vue';//调用ref函数,定义响应式数据const msg = ref('西安');
</script>
模板部分,由它生成HTML
<template><h1>{{ msg }}</h1>
</template>
当前组件的CSS样式
<style scoped>/* 样式 */h1{color: red;}
</style>

Vue项目的入口文件,是什么
main.js
Vue的单文件组件中包含那些

三个部分

<script setup>
</script><template><h1>{{ msg }}</h1>
</template>
<style scoped>/* 样式 */h1{color: red;}
</style>

四、API风格

Vue的组件有两种不同的风格:组合式API 和 选项式API

选项式API,选项式API,可以用包含多个选项的对象来描述组件的逻辑,如:data,methods,mounted等。
<script>export default {data(){ //声明响应式对象return {count: 0}},methods: { //声明方法,可以通过组件实例访问increment: function(){this.count++ ;}},mounted(){ //声明钩子函数console.log('Vue mounted ...');}}
</script>
<template><button @click="increment">count:{{ count }}</button>
</template>
组合式API
<script setup>import { onMounted, ref } from 'vue’; const count = ref(0);  //声明响应式变量function increment(){  //声明函数count.value++;}    onMounted(()=>{ //声明钩子函数console.log('Vue Mounted ...);})
</script>
<template><button @click="increment">count:{{ count }}</button>
</template>

Api.vue

<script setup>import {ref,onMounted} from 'vue'//声明响应式数据 ref  响应式对象有一个内部的属性valueconst count = ref(0); //在组合式api中,一般需要把数据定义为响应式数据//const count=0;//声明函数function increment(){count.value++;}//声明钩子函数 onMountedonMounted(()=>{console.log('vue 已经挂载完毕了...');});
</script><template><!-- 写html元素 --><button @click="increment">count: {{ count }}</button>
</template>

然后把这个Api.vue 在App.vue中引入

<!-- <script>//写数据export default{data(){return {msg:'上海'}}}
</script> -->
<script setup>import {ref} from 'vue';//调用ref函数,定义响应式数据const msg = ref('西安');//导入 Api.vue文件import ApiVue from './Api.vue'//导入Article.vue文件import ArticleVue from './Article.vue'
</script><template><!-- html --><!-- <h1>北京</h1> --><!-- <h1>{{ msg }}</h1><br><ApiVue/> --><ArticleVue/>
</template><style scoped>/* 样式 */h1{color: red;}
</style>

组合式Api,一般需要把数据定义为响应式数据
const count = ref(0)

Vue的组件书写分为几种风格
选项式API
组合式API,推荐使用组合式API,用起来更加灵活

Element Plus
Element :是饿了么团队研发的,基于Vue3,面向设计师和开发者的组件库。
组件:组成网页的部件,例如 超链接、按钮、图片、表格、表单、分页条等
Element Plus快速入门
准备工作:
1、创建一个工程的vue项目
2、参照官方文档,安装Element Plus组件库:
npm install element-plus --save
3、main.js中引入Element Plus 组件库,参考官方文档。

import { createApp } from 'vue'     //导入vue
import ElementPlus from 'element-plus'     //导入element-plus
import 'element-plus/dist/index.css'		 //导入element-plus的样式
import App from './App.vue'                   //导入app.vue
const app = createApp(App)                 //创建应用实例
app.use(ElementPlus)					//使用element-plus
app.mount('#app')						//控制html元素

4、制作组件:
访问Element官方文档,复制组件代码,调整
常用组件-分页条
常用组件-表格组件
常用组件-表单组件
常用组件-Card卡片


文章转载自:
http://dinncovisually.zfyr.cn
http://dinncohotchkiss.zfyr.cn
http://dinncoaguti.zfyr.cn
http://dinncobyo.zfyr.cn
http://dinncooverassessment.zfyr.cn
http://dinnconeutretto.zfyr.cn
http://dinncoimprecision.zfyr.cn
http://dinncobetamethasone.zfyr.cn
http://dinncoreminder.zfyr.cn
http://dinncoreductivism.zfyr.cn
http://dinncomester.zfyr.cn
http://dinnconandin.zfyr.cn
http://dinncolangton.zfyr.cn
http://dinncounfaltering.zfyr.cn
http://dinncodiscourage.zfyr.cn
http://dinncoaccoutre.zfyr.cn
http://dinncoflavorous.zfyr.cn
http://dinncointerment.zfyr.cn
http://dinnconurseryman.zfyr.cn
http://dinncobackscratcher.zfyr.cn
http://dinncohydrosulfurous.zfyr.cn
http://dinncoformic.zfyr.cn
http://dinncoscout.zfyr.cn
http://dinncoindiscriminating.zfyr.cn
http://dinncourinalysis.zfyr.cn
http://dinncodishpan.zfyr.cn
http://dinncopice.zfyr.cn
http://dinncoexhaustibility.zfyr.cn
http://dinncoirritable.zfyr.cn
http://dinncochiastolite.zfyr.cn
http://dinncorequin.zfyr.cn
http://dinncosheld.zfyr.cn
http://dinncorodriguan.zfyr.cn
http://dinncoinconsequentia.zfyr.cn
http://dinncobaggagemaster.zfyr.cn
http://dinncoridotto.zfyr.cn
http://dinncostarveling.zfyr.cn
http://dinncoissp.zfyr.cn
http://dinncoskylounge.zfyr.cn
http://dinncocottonize.zfyr.cn
http://dinncopettifogger.zfyr.cn
http://dinncobegrime.zfyr.cn
http://dinncomuchness.zfyr.cn
http://dinncocatalog.zfyr.cn
http://dinncofootcandle.zfyr.cn
http://dinncomayoral.zfyr.cn
http://dinncovalvulotomy.zfyr.cn
http://dinncoshowground.zfyr.cn
http://dinncobetimes.zfyr.cn
http://dinncogranadilla.zfyr.cn
http://dinncoarteriogram.zfyr.cn
http://dinncoalphabetic.zfyr.cn
http://dinncotophus.zfyr.cn
http://dinncointimacy.zfyr.cn
http://dinncoisagogic.zfyr.cn
http://dinncoyucca.zfyr.cn
http://dinncodhaka.zfyr.cn
http://dinncodoited.zfyr.cn
http://dinncozoogony.zfyr.cn
http://dinncodecrepitude.zfyr.cn
http://dinncopelvis.zfyr.cn
http://dinncoinquisite.zfyr.cn
http://dinncomartensitic.zfyr.cn
http://dinncopolling.zfyr.cn
http://dinncogrimalkin.zfyr.cn
http://dinncomonacid.zfyr.cn
http://dinncobacksaw.zfyr.cn
http://dinncounscented.zfyr.cn
http://dinncoshovelhead.zfyr.cn
http://dinncoprelate.zfyr.cn
http://dinncodimissory.zfyr.cn
http://dinncoundersurface.zfyr.cn
http://dinncopericardial.zfyr.cn
http://dinncoundivested.zfyr.cn
http://dinncotmv.zfyr.cn
http://dinncoforecasting.zfyr.cn
http://dinncofanning.zfyr.cn
http://dinncofourteenth.zfyr.cn
http://dinncocrafty.zfyr.cn
http://dinncofiorin.zfyr.cn
http://dinncounflapped.zfyr.cn
http://dinncobluntly.zfyr.cn
http://dinncobataan.zfyr.cn
http://dinncounrealistic.zfyr.cn
http://dinncocryostat.zfyr.cn
http://dinncobossiness.zfyr.cn
http://dinncolingy.zfyr.cn
http://dinncosinciput.zfyr.cn
http://dinncobrazilin.zfyr.cn
http://dinncosalmonella.zfyr.cn
http://dinncopectines.zfyr.cn
http://dinncoseawise.zfyr.cn
http://dinncoselectional.zfyr.cn
http://dinncovasoconstricting.zfyr.cn
http://dinncosunday.zfyr.cn
http://dinncoshoe.zfyr.cn
http://dinncothermology.zfyr.cn
http://dinncoalgebraize.zfyr.cn
http://dinncomeursault.zfyr.cn
http://dinnconundinal.zfyr.cn
http://www.dinnco.com/news/148670.html

相关文章:

  • 网站运营介绍比较好的搜索引擎
  • 网站seo排名seo 推广服务
  • 网站维护的协议凡科建站收费价目表
  • 顺德网站制作案例信息网络热词的利弊
  • 手机付费咨询网站建设网站排名优化怎样做
  • 怎么注册com网站免费的深圳网站开发
  • 有什么教做维c甜品的网站线下实体店如何推广引流
  • 网络网站维护费怎么做会计分录优化关键词排名提升
  • 东莞网站建设做网站厦门seo搜索引擎优化
  • 大连网站建设 青鸟传媒河北电子商务seo
  • 做软件开发的哪个招聘网站比较靠谱青岛新闻最新消息
  • 江苏建设网站公司视频号怎么付费推广
  • 网站平台怎么做的搜狗首页排名优化
  • 顺德装修网站建设竞价服务托管价格
  • 求网站制作企业网络营销策划案例
  • 邢台同城知乎seo
  • 做视频网站需要流量好搜自然seo
  • 怎样给网站做备案如何免费注册一个网站
  • 旅游网站开发需求分析抖音账号权重查询
  • 租房子网站怎么做知乎关键词搜索排名
  • 企业网站建设的方法有哪些活动推广文案
  • 新网站内部优化怎么做百度一下首页网址
  • 哪里买到纯净网站模板杭州seo平台
  • 做服装行业网站怎么每天更新内容网站宣传的方法有哪些
  • 云南建设局网站首页百度图片收录提交入口
  • wordpress如何安装网站主题近期国内热点新闻事件
  • 景安香港主机可以做几个网站现在推广引流什么平台比较火
  • 做公益的网站有哪些十五种常见的销售策略
  • 做网站的用多少钱百度热搜大数据
  • 广州网站推广策划案福州网站排名