Vue的Prop 驗證

記錄一下學習Vue時候遇到的坑 在官方教程中的Prop 驗證章節,提供的例子裏 其中驗證「String」的時候,單純的輸入雙引號或者單引號括起來的字符串,在運行的時候依然會報錯 [Vue warn]: Invalid prop: type check failed for prop 「propC」. Expected String with value 「2」, got Number with v
相關文章
相關標籤/搜索