Comments (3)
new Model({
test: {
type: String,
default: 'ab'
},
boolean: Boolean
})
主要是type是关键字,我们也可以通过上面的方式定义test为String,默认值为ab。
Boolean类型可以的。
我今天晚上会解决这个问题的。
from model.
请更新版本
from model.
好的,辛苦了~
from model.
Related Issues (10)
- parse 数据可以是定义吗 HOT 1
- 哈喽,我想问一下为啥要定义自己的一套TYPE HOT 2
- pkg.json homepage value is wrong? HOT 1
- 请问怎么集成到vue中 HOT 10
- 请问数组怎么设置默认值? HOT 1
- How to parse array HOT 1
- 可以支持typescript吗 HOT 2
- 是否可以加入转义读取key的功能? HOT 3
- type: Array, parse 返回异常
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model.