摘要: input[type='checkbox']{ width: 20px; height: 20px; background-color: #fff; -webkit-appearance:none; border: 1px solid #c9c9c9; border-radius: 2px; out 阅读全文
posted @ 2018-12-25 14:19 heshimei77 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 在vue中,使用watch来响应数据的变化。watch的用法大致有三种。下面代码是watch的一种简单的用法: <input type="text" v-model="cityName"/> new Vue({ el: '#root', data: { cityName: 'shanghai' }, 阅读全文
posted @ 2018-11-30 14:37 heshimei77 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 初学vue的时候,不知道如何在方法中跳转界面并传参,百度过后,了解到两种方式,params 与 query。然后,错误就这么来了: router文件下index.js里面,是这么定义路由的: { path:"/detail", name:"detail", component:home } 我想用p 阅读全文
posted @ 2018-11-30 14:36 heshimei77 阅读(525) 评论(0) 推荐(0) 编辑
摘要: layui多选框插件 https://fly.layui.com/extend/formSelects/ 阅读全文
posted @ 2018-11-26 14:50 heshimei77 阅读(82) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000008010666?utm_source=tag-newest 阅读全文
posted @ 2018-11-26 09:38 heshimei77 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 个人理解并整理如下 一、父传子 prop传参 父组件传递参数<x-scoll :class="red"></x-scoll> 子组件props:["class"] 子组件接收red(参数)并使用props还有更严谨的写法 注明参数类型等 二、子传父 子组件绑定并注册事件v-on:click="cha 阅读全文
posted @ 2018-11-23 15:46 heshimei77 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Tip1:如果表单不是通过Bootstrap构建(即元素包含表单项且关联的label没有form-group类),可能会看到错误Uncaught RangeError: Maximum call stack size exceeded tip2:不要使用表单的属性来设置表单的name和id属性(如s 阅读全文
posted @ 2018-11-23 09:55 heshimei77 阅读(464) 评论(0) 推荐(0) 编辑
摘要: <script> import {Config} from '@/config.js' import {mapState} from 'vuex' import {LocalData, toast, WX} from '@/utils/common' import {FileUtil} from ' 阅读全文
posted @ 2018-11-09 10:46 heshimei77 阅读(251) 评论(0) 推荐(0) 编辑
摘要: submit同一提交到后台处理 阅读全文
posted @ 2018-10-25 19:51 heshimei77 阅读(87) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div> <span onclick="prime(this)">aaaa</span> <span>bbbb</span> <sp 阅读全文
posted @ 2018-10-22 10:44 heshimei77 阅读(137) 评论(0) 推荐(0) 编辑