摘要:
value——表示属性的值 writable——表示属性的可书写性 configurable——表示属性是否可编辑,默认值为true,编辑内容包括(1)能否使用delete删除,(2)能否修改属性特性,(3)能否修改访问器属性 enumerable——表示属性是否可枚举。 getter和seette 阅读全文
posted @ 2020-12-22 14:18
磊~~
阅读(160)
评论(0)
推荐(0)
摘要:
1,创建PagInation.vue组件 2,index.js中引用PagInation.vue import PagInation from './PagInation.vue' 3,// 添加install方法 PagInation.install = Vue => { Vue.componen 阅读全文
posted @ 2020-12-22 10:54
磊~~
阅读(137)
评论(0)
推荐(0)
摘要:
指令: Vue 自定义指令有全局注册和局部注册两种方式。先来看看注册全局指令的方式,通过 Vue.directive( id, [definition] ) 方式注册全局指令。然后在入口文件中进行 Vue.use() 调用。 批量注册指令,新建 directives/index.js 文件 impo 阅读全文
posted @ 2020-12-22 10:46
磊~~
阅读(3948)
评论(0)
推荐(1)
摘要:
空格: onkeyup="this.value=this.value.replace(/^ +| +$/g,'')" 换行: ng-keydown="ctrl.checkEnter(event)" vm.checkEnter = function(e){ var et = e || window.e 阅读全文
posted @ 2020-12-22 09:24
磊~~
阅读(1215)
评论(0)
推荐(0)

浙公网安备 33010602011771号