fe-interview
fe-interview copied to clipboard
[vue] prop验证的type类型有哪几种?
[vue] prop验证的type类型有哪几种?
js中的数据类型
Number, String, Boolean, Array, Function, Object
七种:
props:{
title:String,
likes: Number,
isPublished: Boolean,
commentIds: Array,
author: Object,
callback: Function,
contactsPromise: Promise
}