早上好,
我使用了aldeed的simple-schema和collection2,没有任何问题。我现在想要使用的是自动表单包( https://github.com/aldeed/meteor-autoform#a-basic-insert-form ),更具体地说是其中的一个示例。
为了简单起见,我仍然在尝试让第一个示例工作:
autoform.html
<head>
<title>autoForm</title>
</head>
<body>
{{> insertBookForm}}
</body>
<template name="insertBookForm">
{{> quickForm collection="Books" id="insertBookForm" type="insert"}}
</template>common.js
Books = new Mongo.Collection("books");
Books.attachSchema(new SimpleSchema({
title: {
type: String,
label: "Title",
max: 200
},
author: {
type: String,
label: "Author"
},
copies: {
type: Number,
label: "Number of copies",
min: 0
},
lastCheckedOut: {
type: Date,
label: "Last date this book was checked out",
optional: true
},
summary: {
type: String,
label: "Brief summary",
optional: true,
max: 1000
}
}));问题是我总是得到一张空白页。在meteor应用程序终端中没有显示错误。
诚挚的问候
发布于 2015-01-25 18:36:12
我也有同样的问题,试着添加meteor add ongoworks:security,这应该对你有帮助。
https://stackoverflow.com/questions/26358290
复制相似问题