<!DOCTYPEhtml><html><head><metacharset="UTF-8"/><title>收集表单数据</title><scripttype="text/javascript"src="../js/vue.js"></script></head><body><!-- 收集表单数据:若:<input type="text"/>,则v-model收集的是value值,用户输入的就是value值。若:<input type="radio"/>,则v-model收集的是value值,且要给标签配置value值。若:<input type="checkbox"/>1.没有配置input的value属性,那么收集的就是checked(勾选 or 未勾选,是布尔值)2.配置input的value属性:(1)v-model的初始值是非数组,那么收集的就是checked(勾选 or 未勾选,是布尔值)(2)v-model的初始值是数组,那么收集的的就是value组成的数组备注:v-model的三个修饰符:lazy:失去焦点再收集数据number:输入字符串转为有效的数字trim:输入首尾空格过滤--><!-- 准备好一个容器--><divid="root"><form@submit.prevent="demo">账号:<inputtype="text"v-model.trim="userInfo.account"><br/><br/>密码:<inputtype="password"v-model="userInfo.password"><br/><br/>年龄:<inputtype="number"v-model.number="userInfo.age"><br/><br/>性别:男<inputtype="radio"name="sex"v-model="userInfo.sex"value="male">女<inputtype="radio"name="sex"v-model="userInfo.sex"value="female"><br/><br/>爱好:学习<inputtype="checkbox"v-model="userInfo.hobby"value="study">打游戏<inputtype="checkbox"v-model="userInfo.hobby"value="game">吃饭<inputtype="checkbox"v-model="userInfo.hobby"value="eat"><br/><br/>所属校区<selectv-model="userInfo.city"><optionvalue="">请选择校区</option><optionvalue="beijing">北京</option><optionvalue="shanghai">上海</option><optionvalue="shenzhen">深圳</option><optionvalue="wuhan">武汉</option></select><br/><br/>其他信息:<textareav-model.lazy="userInfo.other"></textarea><br/><br/><inputtype="checkbox"v-model="userInfo.agree">阅读并接受<ahref="http://www.atguigu.com">《用户协议》</a><button>提交</button></form></div></body><scripttype="text/javascript">Vue.config.productionTip =falsenewVue({el:'#root',data:{userInfo:{account:'',password:'',age:18,sex:'female',hobby:[],city:'beijing',other:'',agree:''}},methods:{demo(){console.log(JSON.stringify(this.userInfo))}}})</script></html>
相关新闻
阅读笔记(BMSB 2018)Video Stitching Based on Optical Flow
参考文献
Xie C, Zhang X, Yang H, et al. Video Stitching Based on Optical Flow[C]//2018 IEEE International Symposium on Broadband Multimedia Systems and Broadcasting (BMSB). IEEE, 2018: 1-5.
摘要
视频拼接在计算机视觉中仍然是一个具有挑战性的问题࿰…