上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页
摘要: 阅读全文
posted @ 2021-04-26 09:48 maycpou 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1.v-for循环数组 <template> <div> <ul> <li v-for="item in list" :key="item">//遍历list,每个item生成一个li元素,key作为唯一标识符,加上key的好处是如果list中的数据变化时在渲染的时候只需要改变变化的dom,不然就需 阅读全文
posted @ 2021-04-25 20:21 maycpou 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 1.v-if=""和v-show=""在""中的值如果是true则html元素可见,为false则元素不可见。v-if和v-show的区别是v-if不显示元素的时候是直接删除这个元素,v-show不显示是用css的display设置为none元素还是在的。 <template> <div> <but 阅读全文
posted @ 2021-04-25 19:57 maycpou 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.将excel文件导入ArcMap中 2.将加载的excel文件导出为pdf 3.导出的pdf直接再加载到ArcMap中 4.选择xy值的字段加载为图层 5.将图层导出为Shapefile文件 阅读全文
posted @ 2021-04-25 15:33 maycpou 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1.下面的代码: <div class="box1" @click="one()"> <div class="box2" @click="two()"> <button @click="three()">button</button> </div> </div> 上面的代码在点击button按钮的时 阅读全文
posted @ 2021-04-24 19:07 maycpou 阅读(79) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <button v-on:click="sub('test',$event)">-</button>//v-on表示绑定事件,这里绑定click还有很多其他时间比如鼠标移入移出等等,用法都一样 //将click绑定到sub方法,并且传入了两个参数,一个是字符串tes 阅读全文
posted @ 2021-04-24 18:41 maycpou 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1.computed是一个vue组件的属性,和data和methos是一个层级,computed中的每一个属性都有一个set和get方法,set方法会在对computed的属性进行赋值时调用,get方法则是获取值的时候调用。 2.computed中的属性一般用于对data中的数据再进行处理后返回。 阅读全文
posted @ 2021-04-24 18:11 maycpou 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 1.v-bind指令用于给html标签的属性赋值,如<h1 v-bind:title="msg">test</h1>。任意属性都可以使用这样的用法 2.v-bind:title可以简写为:title,如<h1 :title="msg">test</h1> 3.:title="",""中也可以使用简单 阅读全文
posted @ 2021-04-23 20:28 maycpou 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.用{{}}已经在前面使用过了,它用于将组件中定义的变量显示到页面。{{}}中也支持一些简单的语法如:{{msg+obj}},msg和obj都是两个定义的string变量。 2.v-pre指令,会让元素忽略掉vue的语法,原样显示内容在页面上,如<h1 v-pre>{{msg}}</h1>,则h1 阅读全文
posted @ 2021-04-23 19:37 maycpou 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.C++中的迭代器一般是不会改变容器的大小的,只是用于读取或者修改容器中元素的值。而插入迭代器可以用于向容器中添加元素。 2. std::vector<int> vec; auto it = std::back_inserter(vec);//back_inserter用于创建一个vec容器的插入 阅读全文
posted @ 2021-04-23 11:43 maycpou 阅读(615) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页