有時候一個屬性的合法型別會有多個,Vue.js 提供以陣列還定義複數個型別的設定方式: ... props: { ... age: [Number, String], ... }, ... data: { ... age: '十八', ...
確定! 回上一頁