![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Happy_ForestXie
不浮,不躁,做一个安静的人
展开
-
Vue子应用父的方法的小案例,以及关于h5localStorage
h5的localStorage 和cookie的区别 localStorage的存储容量比cookie更大; cookie作为http规范的一部分,它的主要作用是与服务器进行交互,使http保持连接状态。也就是你每次请求一个新的页面的时候,cookie都会被发送过去,这样无形中就浪费了宽带。 cookie保存是能指定可以访问该cookie的范围;localStorage的...原创 2018-10-24 11:04:14 · 159 阅读 · 0 评论 -
实现表格能修改,用能编辑、新增的效果
vue的源代码<template> <div class="DefectList"> <div class="dutyEvent-header"> <h5 class="section-title" style="float:left">缺陷统计</h5> &原创 2019-01-08 16:33:10 · 691 阅读 · 1 评论 -
在Vue简单封装e-chart组建
第一步:封装e-chart为组建<template> <div class="echarts"></div></template><style>.echarts { width: 600px; height: 400px;}</style><script>// copy from...原创 2019-03-21 15:52:35 · 1105 阅读 · 0 评论 -
Vue 百度地图
<template> <div> <div style="min-width:100%;min-height: 400px;" ref="baiduMapDiv" :id="elementId"></div> </div></template><script>/* global BMap, ...转载 2019-07-06 21:28:58 · 218 阅读 · 0 评论 -
Vue中权限组件和权限指令
一:权限组件,优点可以很灵活,缺点每个地方使用都要引用这个组件<script>import{check} from '../util/auth';export default { functional:true, props:{ authority:{ type:Array, required:...翻译 2019-08-04 14:10:24 · 866 阅读 · 0 评论 -
Vue中的v-model
一、v-model的使用场景 针对与form表单的input,select,radion,checkbox等一些表单控件二、Vue使用v-model实现双向绑定 v-model其实是Vue中一个语法糖,在表单使用v-mode时,vue底层会解析html标签,解析是否含有v-model的指令,如果有,并将对应的属性挂载到vue中,并且给这个表单添加input,change...原创 2019-08-07 17:14:58 · 348 阅读 · 0 评论 -
Vue开发组件如何将数据和视图分离
一、函数组建<script>export default { props: { value: { type: Array, }, }, data() { return { newTag: '', } }, methods: { addTag() { if (this.newTag.trim().length === 0 || ...转载 2019-08-17 11:05:27 · 2349 阅读 · 0 评论 -
增删改
<template> <div class="serviceCenterConfigurationListEdit"> <div style="margin: 0 auto 10px auto;width: 95%;height: 90%;"> <div style="height:50px"> <di...原创 2019-08-23 14:40:41 · 193 阅读 · 0 评论