摘要: this.$refs.mark.$el.querySelector('input').focus(); 参考:https://www.jianshu.com/p/63bfbbbd1e82在vue中获取光标,需要自定义指令 // 跟data同级directives: { focus: { inserted: function (el, {value}) ... 阅读全文
posted @ 2019-01-16 19:15 lilyliu329 阅读(3930) 评论(0) 推荐(0)