jQuery验证,在Vue1.0下正常,在Vue2.0下无反应。应如何处理?是Bug吗?
当把需要验证的input放到Vue的p中,如
{{ message }}
我测试了jquery-validation和bootstrapvalidator,在Vue2.0下都没反应;在Vue1.0下都正常。
喜欢Bootstrap样式,所以希望用上面的这两个jQuery验证
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
把jQuery验证插件的js代码放到mounted(Vue2)下就行了。但Vue 1.0,代码不在Vue的ready下,也能成功运行。