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

上传到网站的根目录中网站开发建设工资多少

上传到网站的根目录中,网站开发建设工资多少,广州优壹网络科技有限公司,手机app是用什么软件开发的声明:这只是我个人的学习笔记(黑马),供以后复习用 。一天学一点,随时学随时更新。明天会更好的! 这里只给代码,不给运行结果,看不出来代码的作用我也该进厂了。。。。。 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')}, } /scripttemplate!-- 不再要求唯一的根元素 --div{{ message }}button @click="logMessage"log/button/div /templatestyle scoped/style简单的语法糖写法 script setup const message = 'hello world' const logMessage = () = {console.log(message) } /script template!-- 不再要求唯一的根元素 --div{{ message }}button @click="logMessage"log/button/div /templatestyle 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!-- 不再要求唯一的根元素 --divbutton @click='setCount'{{ state.count }}/button/div /templatestyle scoped/styleref()接受简单类型或对象类型数据的参数传入并返回一个响应式的对象 脚本区域修改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!-- 不再要求唯一的根元素 --divbutton @click='setCount'{{ count }}/button/div /templatestyle scoped/style4.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 }}/divdiv计算后的响应式数据-{{ computedList }}/div /templatestyle scoped/style4.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://www.sczhlp.com/news/152962/

相关文章:

  • 云南省工程建设交易系统网站互联网广告代理
  • 网站后台密码在哪个文件网站建设收获与体会
  • 企业网站开发北京作文网课哪家好
  • 网站域名的安全性哈尔滨网页制作费用
  • 做网站的公司一年能赚多少钱wordpress qq分享插件
  • 工具型网站做外贸的都有那些网站
  • 资源网站自己建设还是发软文东营交通信息网官网
  • 为什么有人做商城优惠券网站卖医疗 网站前置审批
  • 网站开发有什么点子南阳旅游网 网站设计
  • 做网站花钱吗建设企业网站登录入口
  • 义乌企业网站设计为什么选择做网站编辑
  • 白云区pc端网站建设河北seo推广公司
  • 网页设计设计一个网站首页网站用户体验优化方案
  • 不会被封的网站谁做系统官网网站模板下载地址
  • 扁平化设计网站欣赏购物网站建设策划
  • 网站维护需要用到哪些知识做网站需要哪种工程师
  • 企业免费网站建设网页设计与制作全过程
  • wordpress做得比较大的网站住房和城乡建设厅网站办事大厅
  • 自己的网站怎么做app吗合肥网站建设方案咨询
  • 介绍国外的网站有什么不同象山县建设工程招投标网站
  • 行业电子商务网站建设营销企业
  • 信誉好的网站建设公司著名logo设计案例
  • app网站建设方案杭州app软件开发
  • 优化网站标题和描述的方法建立自己的影视网站
  • wap手机网站静态模板中国手机最好的网站排名
  • 石家庄网站建设技术支持上海好公司排名前十
  • 山东省建设厅职业资格注册中心网站如何做好关键词的优化
  • 做直播导航网站好手机做网站用什么
  • 调研报告廊坊网站排名优化公司哪家好
  • quiz在哪个网站做中小网站建设都有哪些方案