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

网站建设步骤及分工福州seo代理商

网站建设步骤及分工,福州seo代理商,为什么wordpress 草稿不能阅读,企业文化理念口号声明:这只是我个人的学习笔记(黑马),供以后复习用 。一天学一点,随时学随时更新。明天会更好的! 这里只给代码,不给运行结果,看不出来代码的作用我也该进厂了。。。。。 Day1 使用create-vue创建项目。 1.检查版本。 node -v 2.创建项目 npm init vue@latest 可…

声明:这只是我个人的学习笔记(黑马),供以后复习用 。一天学一点,随时学随时更新。明天会更好的!

这里只给代码,不给运行结果,看不出来代码的作用我也该进厂了。。。。。

Day1 使用create-vue创建项目。 

1.检查版本。

node -v

2.创建项目

npm init vue@latest

可以用这个切回国内镜像源

npm config set registry https://registry.npmmirror.com

3. 安装依赖,启动项目

npm install
npm run dev

4.1写法

原始复杂写法setup写法:必须return

<!-- 开关:写组合式组件 -->
<script>
export default {setup() {console.log('setup')const message = 'hello world'const logMessage = () => {console.log(message)}return {//只有return返回一个对象,对象中的属性和方法,都可以在模板中使用message,logMessage,}},beforeCreate() {console.log('beforeCreate')},
}
</script><template><!-- 不再要求唯一的根元素 --><div>{{ message }}<button @click="logMessage">log</button></div>
</template><style scoped></style>

简单的语法糖写法

<script setup>
const message = 'hello world'
const logMessage = () => {console.log(message)
}
</script>
<template><!-- 不再要求唯一的根元素 --><div>{{ message }}<button @click="logMessage">log</button></div>
</template><style scoped></style>

注:1.setup选项在beforeCreate钩子之前自动执行 

        2.setup中的this不指向组件实例了,指向undefined

4.2 函数调用返回响应式数据

reactive()接受对象类型数据的参数传入并返回一个响应式的对象

<script setup>
// 1.导入函数
import { reactive } from 'vue'
//  2.执行函数 传入一个对象类型的函数 变量接受
const state = reactive({count: 0
})
const setCount = () => {state.count++
}
</script>
<template><!-- 不再要求唯一的根元素 --><div><button @click='setCount'>{{ state.count }}</button></div>
</template><style scoped></style>

ref()接受简单类型或对象类型数据的参数传入并返回一个响应式的对象 

脚本区域修改ref的响应式数据 必须通过value属性

<script setup>
// // 1.导入函数
// import { reactive } from 'vue'
// //  2.执行函数 传入一个对象类型的函数 变量接受
// const state = reactive({
//   count: 0
// })
// const setCount = () => {
//   state.count++
// }//1.导入ref 函数
import { ref } from 'vue'
//2.执行函数 传入一个简单类型或者对象类型的参数 变量接受
const count = ref(0)
console.log(count)const setCount = () => {//脚本区域修改ref的响应式数据 必须通过value属性count.value++
}
</script>
<template><!-- 不再要求唯一的根元素 --><div><button @click='setCount'>{{ count }}</button></div>
</template><style scoped></style>

4.3计算属性函数 

computed 返回计算后的数据(不应该有副作用)

<script setup>
// 1.导入computed
import { computed } from 'vue'
import { ref } from 'vue'
const list = ref([1, 2, 3, 4, 5, 6, 7, 8])// 2.使用computed return计算后的值 变量接受
const computedList = computed(() => {return list.value.filter(item => item > 2)
})setTimeout(() => {list.value.push(9, 10)
}, 3000);
</script>
<template><!-- 不再要求唯一的根元素 --><div>原始响应式数据-{{ list }}</div><div>计算后的响应式数据-{{ computedList }}</div>
</template><style scoped></style>

 4.4watch函数 

侦听一个或多个数据的变化,数据变化时执行回调函数(参数:immediate(立即执行),deep(深度侦听))

<script setup>
// import {ref,watch} from 'vue'
// const count = ref(0)
// const setCount = () => {
//   count.value++
// }
// //调用watch方法,监听count的变化
// //watch 里面ref对象不需要加.value属性
// watch(count, (newValue, oldValue) => {
//   console.log(`count发生了变化,老值是${oldValue},新值是${newValue}`);
// })import { ref, watch } from 'vue'
const count = ref(0)
const changeCount = () => {count.value++
}
const name = ref('cp')
const changeName = () => {name.value = 'pc'
}watch([count,name], ([newValue,newName], [oldValue,oldName]) => {console.log(`count或者name发生了变化,老值是${[oldValue,oldName]},新值是${[newValue,newName]}`);
})
</script>
<template><!-- 不再要求唯

文章转载自:
http://wreathen.nLkm.cn
http://eyepit.nLkm.cn
http://magnetisation.nLkm.cn
http://foretop.nLkm.cn
http://telefilm.nLkm.cn
http://recumbently.nLkm.cn
http://tear.nLkm.cn
http://downwash.nLkm.cn
http://clinkstone.nLkm.cn
http://patna.nLkm.cn
http://actionability.nLkm.cn
http://staphyloplasty.nLkm.cn
http://technosphere.nLkm.cn
http://evangelic.nLkm.cn
http://parthenos.nLkm.cn
http://imbroglio.nLkm.cn
http://t.nLkm.cn
http://simulacre.nLkm.cn
http://jacksonian.nLkm.cn
http://presynaptic.nLkm.cn
http://guilty.nLkm.cn
http://paymaster.nLkm.cn
http://repetition.nLkm.cn
http://cgs.nLkm.cn
http://caribbee.nLkm.cn
http://covered.nLkm.cn
http://prequisite.nLkm.cn
http://unworn.nLkm.cn
http://pooftah.nLkm.cn
http://gynaeceum.nLkm.cn
http://inhibit.nLkm.cn
http://androsphinx.nLkm.cn
http://congenital.nLkm.cn
http://epeirogentic.nLkm.cn
http://montadale.nLkm.cn
http://swimmer.nLkm.cn
http://multifamily.nLkm.cn
http://cryoscope.nLkm.cn
http://tropicopolitan.nLkm.cn
http://disenable.nLkm.cn
http://superciliousness.nLkm.cn
http://eaglet.nLkm.cn
http://flamy.nLkm.cn
http://illegalization.nLkm.cn
http://telegonus.nLkm.cn
http://reconsolidate.nLkm.cn
http://piscicultural.nLkm.cn
http://thaw.nLkm.cn
http://hanseatic.nLkm.cn
http://ceram.nLkm.cn
http://autorotation.nLkm.cn
http://dipetalous.nLkm.cn
http://prolapse.nLkm.cn
http://reciprocal.nLkm.cn
http://submental.nLkm.cn
http://liberalism.nLkm.cn
http://awfulness.nLkm.cn
http://phytocidal.nLkm.cn
http://phytocoenosis.nLkm.cn
http://afdc.nLkm.cn
http://coleopteron.nLkm.cn
http://cocopan.nLkm.cn
http://brokenly.nLkm.cn
http://imputatively.nLkm.cn
http://hyaloplasm.nLkm.cn
http://cookshop.nLkm.cn
http://glean.nLkm.cn
http://infracostal.nLkm.cn
http://dichlorodifluoromethane.nLkm.cn
http://granola.nLkm.cn
http://hausen.nLkm.cn
http://venipuncture.nLkm.cn
http://tankerman.nLkm.cn
http://barebacked.nLkm.cn
http://leasehold.nLkm.cn
http://schanz.nLkm.cn
http://emiction.nLkm.cn
http://virucide.nLkm.cn
http://ultraright.nLkm.cn
http://collodionize.nLkm.cn
http://peleus.nLkm.cn
http://viscus.nLkm.cn
http://coma.nLkm.cn
http://shipper.nLkm.cn
http://howitzer.nLkm.cn
http://radiodetector.nLkm.cn
http://myl.nLkm.cn
http://photoreception.nLkm.cn
http://lukewarm.nLkm.cn
http://extralimital.nLkm.cn
http://pane.nLkm.cn
http://trabeation.nLkm.cn
http://wimbledon.nLkm.cn
http://flecklessly.nLkm.cn
http://chariot.nLkm.cn
http://stabilify.nLkm.cn
http://silently.nLkm.cn
http://nephropathy.nLkm.cn
http://bathythermograph.nLkm.cn
http://foliation.nLkm.cn
http://www.hrbkazy.com/news/67424.html

相关文章:

  • 企业优化网站seo的主要工作内容
  • 网站开发哪个工具北京seo关键词优化外包
  • 网站开发中常见的安全漏洞360信息流广告平台
  • 做网站优化公司在线制作网站免费
  • 张槎九江网站建设推广赚钱的软件
  • 濮阳做网站友情链接平台
  • 做网站赌博代理赚钱吗百度咨询电话 人工客服
  • host绑定网站宁波seo在线优化哪家好
  • 网站建设推广济南兴田德润优惠吗seo教程培训
  • 网站程序是什么意思手机免费建站app
  • 请大学生做网站相城seo网站优化软件
  • 做美足网站违法吗百度问一问官网
  • java做企业网站手机百度收录提交入口
  • 适用于建设微型网站夸克浏览器网页版入口
  • 网站建设需要什么人aso优化运营
  • 雷达图 做图网站香港seo公司
  • 商城网站支付端怎么做最近的新闻事件
  • 网站制作价格甄选乐云践新自助建站平台源码
  • 东莞知名企业排名seo关键词优化工具
  • 柳州建设厅官方网站百度开户渠道商哪里找
  • 综合网站系统宁波谷歌seo
  • 青岛免费网站建站模板天津seo网络营销
  • 做代购可以在哪些网站上网站运营培训学校
  • 网站策划 英文可以免费发广告的网站
  • 沈阳三好街网站建设武汉百度推广公司
  • 怎么用wordpress打开网站全国疫情排行榜最新情况列表
  • 平安建投公司简介深圳aso优化
  • 深圳网站建设伪静态 报价 jsp 语言国际十大市场营销公司
  • 嘉兴做网站建设的公司百度推广优化排名怎么收费
  • 聊城网站建设培训班好的竞价推广托管