**
判断对象中是否有指定属性
**
let person ={
name:'张三',
age:19
}
let isHave = person.hasOwnProperty('sex') // => false
注意:判断person对象中是否有sex属性,没有返回false,有返回true;
**
向某个对象中追加指定属性
**
this.$set('对象名','对象key','对象val')
**
input自动获取焦点和this.$nextTick (个人理解有点像定时器)
**
// 在 input 上加一个ref属性名为inputT
// nextTick会在节点更新后执行 nextTick会在节点更新后执行 nextTick会在节点更新后执行 nextTick会在节点更新后执行
this.$nextTick(()=>{
// 在某个点击事件的时候触发这个方法;
this.$refs.inputT.focus() // 自动获取焦点**加粗样式**
})