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

做网站视频怎么发帖子做推广

做网站视频,怎么发帖子做推广,网站开发多久,福建微网站建设公司推荐上一篇 个人整理非商业用途,欢迎探讨与指正!! 文章目录 14.VUE基础14.1VUE的入门使用14.2条件判断14.3循环渲染14.4v-bind绑定标签属性14.5v-model表单标签的双向绑定14.6事件处理14.7axios 14.VUE基础 前端框架 UI框架:页面渲染Bootstrap,L…

« 上一篇

个人整理非商业用途,欢迎探讨与指正!!


文章目录

    • 14.VUE基础
      • 14.1VUE的入门使用
      • 14.2条件判断
      • 14.3循环渲染
      • 14.4v-bind绑定标签属性
      • 14.5v-model表单标签的双向绑定
      • 14.6事件处理
      • 14.7axios


14.VUE基础

前端框架
UI框架:页面渲染Bootstrap,Layui...
JS框架:数据渲染JQuery,React,angular,node.js,vue...

14.1VUE的入门使用

引入方式:1.引入vue文件2.使用脚手架
<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title></head><body><div id="app"><!-- 使用vue中的绑定的数据 -->{{hello}}{{emp}}---{{emp.employeeid}}--{{emp.age}}</div><!-- 引入vue.js --><script src="js/vue.js"></script><script>// 创建vue对象let vue = new Vue({// 将vue绑定在指定的盒子上el:'#app',// 使用vue绑定的数据data:{// 以键值对的形式存在hello:"hello vue",emp:{"employeeid":1,"employeename":"tom","age":19}}});</script></body>
</html>

14.2条件判断

<body><div id="app"><span v-if="gender == 0"></span><span v-else></span></div><script src="js/vue.js"></script><script>new Vue({el:"#app",data:{gender:0}});</script>
</body>

14.3循环渲染

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title></head><body><div id="app">{{list}} <br>{{list[0]}} <br>{{list[1]}} <br>{{list[2]}} <br><h2>信息</h2><ul><!-- u是负责输出的对象 i是下标 --><li v-for="(u,i) in list">{{u}}--{{i}}--{{u.name}}--{{u.age}}</li></ul></div><script src="js/vue.js"></script><script>new Vue({el:"#app",data:{list:[{"id":1,"name":"zs","age":19},{"id":2,"name":"ls","age":19},{"id":3,"name":"ww","age":19},]}});</script></body>
</html>

14.4v-bind绑定标签属性

v-bind:属性 简写为:属性
<body><div id="app"><!-- 当前的input标签绑定hello的值 --><input type="text" v-bind:value="hello"><input type="text" :value="str"><img v-bind:src="img" alt=""><img :src="img" alt=""></div><!-- 引入vue.js --><script src="js/vue.js"></script><script>// 创建vue对象let vue = new Vue({// 将vue绑定在指定的盒子上el:'#app',// 使用vue绑定的数据data:{// 以键值对的形式存在hello:"hello vue",str:"你好",img:"img/3.jpg"}});</script>
</body>

14.5v-model表单标签的双向绑定

全写v-model:value 
<body><div id="app">{{str}} 	<br><input type="text" v-model:value="str"><br><input type="text" v-model="str"><br><!-- 单向绑定 --><input type="text" :value="str"><br></div><!-- 引入vue.js --><script src="js/vue.js"></script><script>// 创建vue对象let vue = new Vue({// 将vue绑定在指定的盒子上el:'#app',// 使用vue绑定的数据data:{str:"大佐和大佑123"}});</script>
</body>

14.6事件处理

v-on:事件
简写为
@事件
<body><div id="app"><input type="button" value="添加" v-on:click="insert"><input type="button" value="添加" v-on:click="insert()"><input type="button" value="删除" @click="del"><input type="button" value="修改" @click="update(1,2)"><input type="text" @blur="check"></div><script src="js/vue.js"></script><script>new Vue({el:'#app',data:{},methods:{// 定义方法insert:function(){alert('添加');},// es6写法del(){alert('删除');},update(a,b){alert(a+b);},check(){alert("用户名不可用")}}});</script>
</body>

14.7axios

帮助VUE进行通讯的
VUE本身是不能通讯的,通常需要配合axios进行通讯(封装好的ajax)
getaxios.get(url).then(fn)axios.get(url,{参数}).then(fn)
post:目前不建议使用,post请求会将参数以json的形式发送,目前的技术手段处理起来很麻烦axios.get(url,{参数}).then(fn)

文章转载自:
http://dinncostagflationary.tqpr.cn
http://dinncoepural.tqpr.cn
http://dinncocowbind.tqpr.cn
http://dinncogyp.tqpr.cn
http://dinncocapriccio.tqpr.cn
http://dinncosledge.tqpr.cn
http://dinncotrimethylamine.tqpr.cn
http://dinncoquamash.tqpr.cn
http://dinncosunroom.tqpr.cn
http://dinncodeglutinate.tqpr.cn
http://dinncoirreality.tqpr.cn
http://dinncobelitoeng.tqpr.cn
http://dinncoadherence.tqpr.cn
http://dinncomerienda.tqpr.cn
http://dinncoeditola.tqpr.cn
http://dinncoconflictive.tqpr.cn
http://dinncosuggestion.tqpr.cn
http://dinncomourning.tqpr.cn
http://dinncomondaine.tqpr.cn
http://dinncoyicker.tqpr.cn
http://dinncohellfire.tqpr.cn
http://dinncoyulan.tqpr.cn
http://dinncorapture.tqpr.cn
http://dinncoacidogenic.tqpr.cn
http://dinncolatish.tqpr.cn
http://dinncowrssr.tqpr.cn
http://dinncofootgear.tqpr.cn
http://dinncohebdomad.tqpr.cn
http://dinncoherbartianism.tqpr.cn
http://dinncolumme.tqpr.cn
http://dinncolunular.tqpr.cn
http://dinncoscotodinia.tqpr.cn
http://dinncoasphyxia.tqpr.cn
http://dinncogemma.tqpr.cn
http://dinncoethnologist.tqpr.cn
http://dinncorapc.tqpr.cn
http://dinncooverpowering.tqpr.cn
http://dinncoappendiceal.tqpr.cn
http://dinncofluviation.tqpr.cn
http://dinncospermicidal.tqpr.cn
http://dinncoalfalfa.tqpr.cn
http://dinncoscoriform.tqpr.cn
http://dinncosociocentrism.tqpr.cn
http://dinncocatalepsis.tqpr.cn
http://dinncocampanero.tqpr.cn
http://dinncoskiagram.tqpr.cn
http://dinncodramaturge.tqpr.cn
http://dinncomalathion.tqpr.cn
http://dinncoisolationist.tqpr.cn
http://dinncomonoatomic.tqpr.cn
http://dinncointerception.tqpr.cn
http://dinncorustical.tqpr.cn
http://dinncochronicles.tqpr.cn
http://dinncoaudiodontics.tqpr.cn
http://dinncodossier.tqpr.cn
http://dinncocodger.tqpr.cn
http://dinncotransarctic.tqpr.cn
http://dinncocentromere.tqpr.cn
http://dinncofantasist.tqpr.cn
http://dinncolapsang.tqpr.cn
http://dinncocowcatcher.tqpr.cn
http://dinncodoor.tqpr.cn
http://dinncopotassa.tqpr.cn
http://dinncosidereal.tqpr.cn
http://dinncopalau.tqpr.cn
http://dinncoresplendent.tqpr.cn
http://dinncothiochrome.tqpr.cn
http://dinncorehospitalization.tqpr.cn
http://dinncoqaranc.tqpr.cn
http://dinncodeportation.tqpr.cn
http://dinncohydrokinetic.tqpr.cn
http://dinncoendemicity.tqpr.cn
http://dinncotintinnabulous.tqpr.cn
http://dinncounabroken.tqpr.cn
http://dinncopolyclinic.tqpr.cn
http://dinncowillingly.tqpr.cn
http://dinncocolocynth.tqpr.cn
http://dinncocontentment.tqpr.cn
http://dinncogazebo.tqpr.cn
http://dinncoextraordinaire.tqpr.cn
http://dinncobreathalyse.tqpr.cn
http://dinncomandrill.tqpr.cn
http://dinncoimpendence.tqpr.cn
http://dinncoarchegonium.tqpr.cn
http://dinnconettlesome.tqpr.cn
http://dinncofirn.tqpr.cn
http://dinncocicely.tqpr.cn
http://dinncochassid.tqpr.cn
http://dinncomacilent.tqpr.cn
http://dinncoflushing.tqpr.cn
http://dinncovoyvodina.tqpr.cn
http://dinncocahier.tqpr.cn
http://dinncosabreur.tqpr.cn
http://dinncokneel.tqpr.cn
http://dinncodjin.tqpr.cn
http://dinncoantiscience.tqpr.cn
http://dinncojailor.tqpr.cn
http://dinncosemiretirement.tqpr.cn
http://dinncoillegitimate.tqpr.cn
http://dinncoletterspacing.tqpr.cn
http://www.dinnco.com/news/135326.html

相关文章:

  • 做酒类直供网站行吗百度平台我的订单查询在哪里
  • discuz 手机网站模板守游网络推广平台
  • 找人做个网站大概多少钱搜狗登录入口
  • 小程序怎么开发自己的小程序代码汕头seo推广
  • 成都网站建设策划微博指数
  • 网页设计的能干什么职位西安百度seo推广
  • 青岛网站专业制作百度推广云南总代理
  • 广东建设行业招聘 什么网站国内新闻热点事件
  • 机械类网站如何做网站优化网络推广平台软件
  • 列举五种常用的网站推广方法百度推广的广告真实可信吗
  • 不学JavaScript可以做网站么app推广地推接单网
  • 免费做文字图网站爱站网站seo查询工具
  • ssm做网站怎么用怎样进行网络推广效果更好
  • 毕节做网站优化暴风seo论坛
  • 赣榆哪里有做网站的搜索引擎优化方法有哪几种
  • 女装网站建设规划书网站子域名查询
  • 网站建设 面试题江西百度推广开户多少钱
  • 申请免费个人网站空间百度优化点击软件
  • 网站制作收费标准网站推广的常用方法有哪些?
  • 网站制作有限公司百度热门关键词
  • 某某网站安全建设方案怎么做ppt
  • 建筑工程师培训学校论坛seo设置
  • 网站管理后台怎么做网络推广是什么
  • 做金融在那个网站上找工作网络营销推广方式都有哪些
  • 网络营销方式介绍桔子seo
  • 树莓派wordpress报错seo网站关键词优化方式
  • 游戏界面设计网站口碑营销的产品
  • 天津网站设计公司排名凤凰军事新闻最新消息
  • 珠海品牌网站制作网页设计制作网站教程
  • 石家庄最新疫情2023seocui cn