Vue.use(VeeValidate,config); assets/js/zh_CN 代表你存放語言包的目錄,從node_modules/vee-validate/dist/locale目錄下面拷貝到你的項(xiàng)目 Validator還有更多應(yīng)用,下面再講。 config其它參數(shù),delay代表輸入多少ms之后進(jìn)行校驗(yàn),messages代表自定義校驗(yàn)信息,strict=true代表沒有設(shè)置規(guī)則的表單不進(jìn)行校驗(yàn),errorBagName屬于高...
www.dbjr.com.cn/article/1126...htm 2025-6-1