vue使用onblur无效

组件使用onblur无效时,使用@blur.native.capture=""来代替@blur。

@blur.native.capture="checkDataUnique('companyname')"

另外,可以使用如下方式获取Vue组件的值:

ref="companyName"(组件中配置)
var value = this.$refs.companyName.value(获取值)
原文地址:https://www.cnblogs.com/Ky-Thompson23/p/12966108.html