Fork me on GitHub
摘要: 1.$set的用法:给 student对象新增 age 属性 data () { return { student: { name:"里斯'} } } 直接给student赋值不会触发视图更新 mounted () { this.student.age = 18} 正确写法:this.$set(th 阅读全文
posted @ 2018-10-24 09:35 欢欢11 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-22 09:07 欢欢11 阅读(157) 评论(0) 推荐(0) 编辑
摘要: <el-table-column label="地址" prop="address"> <template slot-scope="props"> <el-button @click.native="showDetail(props.row)">查看详情</el-button> </template 阅读全文
posted @ 2018-10-17 18:03 欢欢11 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.在My_ABP.Core根目录下先创建一个文件夹,在该文件夹里创建一个公共的类,在里面定义所需要用到的属性 public class Person:Entity { public string Name { get; set; } public string Address { get; set 阅读全文
posted @ 2018-10-15 12:08 欢欢11 阅读(1902) 评论(0) 推荐(0) 编辑
摘要: @media only screen and (min-width: 1024px) //当分辨率width >= 1024px 时使用1.jpg作为背景图片 { .bg{ background:url(./images/1.jpg) no-repeat; } } @media only scree 阅读全文
posted @ 2018-10-15 09:31 欢欢11 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: 1.父组件向子组件传递方法,使用的是事件绑定机制 v-on:传递给子组件的方法名=“父组件中的方法” 阅读全文
posted @ 2018-10-14 18:18 欢欢11 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/ixygj197875/article/details/79090578 阅读全文
posted @ 2018-10-12 17:55 欢欢11 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-12 17:46 欢欢11 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.Vue.config.keyCodes.enter=13; //main.js中定义全局 <template> <div> <input v-model="data1" type="text" @keyup.F12="add"> </div> </template> <script> expor 阅读全文
posted @ 2018-10-12 17:32 欢欢11 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-12 17:02 欢欢11 阅读(753) 评论(0) 推荐(0) 编辑