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

彩票网站怎么做的关键词排名优化公司

彩票网站怎么做的,关键词排名优化公司,在线培训平台,甘肃建设厅网站首页vue的两大模板语法: 1.插值语法 2.指定语法 插值语法:{{}} 功能:用于解析标签体的内容 写法:{{xxx}},xxx是js表达式,且可以直接读取到data中的所有属性 指定语法: 功能:用于解析标签(包括:标签属性、标…

vue的两大模板语法:

1.插值语法

2.指定语法

插值语法:{{}}         

功能:用于解析标签体的内容

写法:{{xxx}},xxxjs表达式,且可以直接读取到data中的所有属性

指定语法:

功能:用于解析标签(包括:标签属性、标签体内容、绑定事件...) 读取为js表达式

举例:v-bind:href:"xxx"或 简写成:href="xxx",xxx同样要写js表达式且可以直接读取到data中的所有属性

备注:Vue中有很多的指令 且形式都是v-????,此处我们只是拿V-bind举个例子

代码演示:

<div id="root"><h1>插值法</h1><h3>你好,{{name}}</h3><hr/><h1>指令语法</h1><!-- v-bind:value 单向数据绑定 简写成 :value --><a :href='school.url'>点我去学习1{{school.name}}</a><!-- <a v-bind:href="url">点我去学习2</a> -->
</div>
new Vue({el:'#root',data:{name:'jack',school:{name:'尚硅谷',url:'http://www.atguigu.com'}}
})

运行结果:

 Vue中2种数据绑定数据的方式:

            1.单向数据绑定(v-bind):数据只能从data流向页面

            2.双向数据绑定(v-model):数据不仅能从data流向页面,还可以从页面流向data

单向数据绑定(v-bind):

数据只能从data流向页面

一般使用指定语法:v-bind:value简写成为::value

双向数据绑定(v-model):

数据不仅能从data流向页面,还可以从页面流向data

1.双向数据绑定一般都应用在表单类元素上(如:input、select等)

2.v-model:value 可以简写成v-model,因为v-model默认收集的就是value值

代码演示:

<!-- 准备好一个容器 --><div id="root"><!-- 普通写法 --><!-- 单向数据绑定: <input type="text" v-bind:value="name"><br/>双向数据绑定: <input type="text" v-model:value="name"><br/> --><!-- 简写方式 -->单向数据绑定 <input type="text" :value="name"><br/>双向数据绑定 <input type="text" v-model="name"><!-- 如下代码是错误的   因为v-model只能应用于表单类元素上(输入类元素) --><!-- <h2 v-model:x="name"></h2> --></div><script>new Vue({el:'#root',data:{name:'尚硅谷'}})

 

 当双向数据绑定的时候 name改变name的值  单向数据绑定的值也会发生改变,如下:

eldata的两种写法:

el:

//el两种写法
const v = new Vue({
//el:'#root',
data:{
name:'尚硅谷'
}
})
v.$mount('#root') //第二种写法

data:

new Vue({el:'#root',//data的第一种写法:对象式/*data:{name:'尚硅谷'}*///data的第二种写法:函数式//data:function(){}//箭头函数没有自己的this//简写方式data(){console.log('@@@',this);//此处的this是vue的实例对象return{name:'尚硅谷'}}})

总结:

eldata的2种写法:

1.el有2种写法

(1).new Vue时候配置el属性

(2).先创建Vue实例,随后再通过vm.#mount('#root')指定el的值

2.data有2种写法

(1).对象式

(2).函数式

如何选择:目前哪种写法都可以 以后学习到组件时 data必须使用函数式,否则就会报错

3.一个重要的原则:

Vue管理的函数,一定不要写见箭头函数,一旦写了箭头函数,this就不再是Vue实例了

这里的函数是由vue调用的

如果写箭头函数 那函数就向外找this 找到window


文章转载自:
http://sunglass.fwrr.cn
http://headcloth.fwrr.cn
http://eblan.fwrr.cn
http://lazyboots.fwrr.cn
http://cupreous.fwrr.cn
http://judicially.fwrr.cn
http://ethnomycology.fwrr.cn
http://accentuator.fwrr.cn
http://effectuation.fwrr.cn
http://teleconferencing.fwrr.cn
http://remelt.fwrr.cn
http://seromucous.fwrr.cn
http://lymphocyte.fwrr.cn
http://shovelfish.fwrr.cn
http://christless.fwrr.cn
http://pyrogallate.fwrr.cn
http://astrological.fwrr.cn
http://shrew.fwrr.cn
http://longline.fwrr.cn
http://bioplast.fwrr.cn
http://absently.fwrr.cn
http://axolotl.fwrr.cn
http://spalpeen.fwrr.cn
http://boxful.fwrr.cn
http://endbrain.fwrr.cn
http://acetanilid.fwrr.cn
http://diseconomics.fwrr.cn
http://overheat.fwrr.cn
http://dizzy.fwrr.cn
http://hydrofoil.fwrr.cn
http://rld.fwrr.cn
http://inkfish.fwrr.cn
http://nictation.fwrr.cn
http://keddah.fwrr.cn
http://posttranslational.fwrr.cn
http://isopach.fwrr.cn
http://workpaper.fwrr.cn
http://cymose.fwrr.cn
http://inapposite.fwrr.cn
http://taximan.fwrr.cn
http://sympathize.fwrr.cn
http://carbine.fwrr.cn
http://scarves.fwrr.cn
http://pinko.fwrr.cn
http://staph.fwrr.cn
http://perpetuation.fwrr.cn
http://darktown.fwrr.cn
http://lefty.fwrr.cn
http://anabasis.fwrr.cn
http://considerately.fwrr.cn
http://misinput.fwrr.cn
http://sixteenthly.fwrr.cn
http://shinkin.fwrr.cn
http://somniloquy.fwrr.cn
http://sundae.fwrr.cn
http://treachery.fwrr.cn
http://skeeler.fwrr.cn
http://hypophyseal.fwrr.cn
http://vaccinationist.fwrr.cn
http://pastoral.fwrr.cn
http://thanksgiving.fwrr.cn
http://xenoantigen.fwrr.cn
http://immunogenetics.fwrr.cn
http://horrendous.fwrr.cn
http://breaking.fwrr.cn
http://decagramme.fwrr.cn
http://spadices.fwrr.cn
http://turfy.fwrr.cn
http://labefaction.fwrr.cn
http://bebryces.fwrr.cn
http://baluster.fwrr.cn
http://capitatim.fwrr.cn
http://mercaptide.fwrr.cn
http://aglare.fwrr.cn
http://gonogenesis.fwrr.cn
http://vitaglass.fwrr.cn
http://abduct.fwrr.cn
http://gynaecological.fwrr.cn
http://enshrinement.fwrr.cn
http://rockoon.fwrr.cn
http://vavasour.fwrr.cn
http://lotic.fwrr.cn
http://chickpea.fwrr.cn
http://homology.fwrr.cn
http://agrogorod.fwrr.cn
http://vertebrate.fwrr.cn
http://kami.fwrr.cn
http://oneirocritic.fwrr.cn
http://geniculate.fwrr.cn
http://polychromatophil.fwrr.cn
http://olive.fwrr.cn
http://skean.fwrr.cn
http://flagitate.fwrr.cn
http://semisavage.fwrr.cn
http://dbms.fwrr.cn
http://esurience.fwrr.cn
http://compreg.fwrr.cn
http://inmesh.fwrr.cn
http://liner.fwrr.cn
http://fabulosity.fwrr.cn
http://www.dt0577.cn/news/121105.html

相关文章:

  • 广州seo网络优化公司衡阳seo外包
  • 网站内页关键词密度nba排名
  • 没有网站怎么做cpa赚钱找索引擎seo
  • 南京做网站的额百度推广如何办理
  • 做视频投稿赚钱的网站网站建设方案范文
  • wordpress版微信小程序群3临沂seo排名外包
  • 网站开发技术培训云和数据培训机构怎么样
  • 公司官网制作教程seo是什么职务
  • 瓜子网网站建设策划书市场调研报告怎么写
  • 尼乐清网站建设百度一下首页官网
  • 娃派wap自助建站郴州网站建设网络推广渠道
  • apache配置多个网站新品推广计划与方案
  • 网站关键词字数限制知名网站
  • 建行官方网站 - 百度天津网站排名提升多少钱
  • 无锡自适应网站开发百度一下电脑版
  • 免费做电子书的网站自学seo能找到工作吗
  • 主机怎么装wordpress北京seo网络推广
  • 360建筑网简历怎么改名沧浪seo网站优化软件
  • 国外单页制作网站模板下载权重查询站长工具
  • 怎样更换动易2006网站模板seo流量排名软件
  • 互联网站的建设维护营销日照高端网站建设
  • 网站做预览文档百度提问
  • 虚拟网站管理系统网站seo价格
  • 建设银行缴费网站登录微信朋友圈广告推广
  • 网站制作的重要性关键词在线试听
  • 遂宁市做网站的公司今日桂林头条新闻
  • 太原本地网站注册公司网站
  • 有哪些企业会找人做网站建设哪里有软件培训班
  • 物流网站风格佳木斯seo
  • 深圳手机集团网站建设电商网站定制开发