首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >meteor-autoform示例都会生成空白页面/无内容

meteor-autoform示例都会生成空白页面/无内容
EN

Stack Overflow用户
提问于 2014-10-14 18:16:45
回答 1查看 170关注 0票数 0

早上好,

我使用了aldeed的simple-schema和collection2,没有任何问题。我现在想要使用的是自动表单包( https://github.com/aldeed/meteor-autoform#a-basic-insert-form ),更具体地说是其中的一个示例。

为了简单起见,我仍然在尝试让第一个示例工作:

autoform.html

代码语言:javascript
复制
    <head>
    <title>autoForm</title>
</head>

<body>
    {{> insertBookForm}}
</body>

<template name="insertBookForm">
    {{> quickForm collection="Books" id="insertBookForm" type="insert"}}
</template>

common.js

代码语言:javascript
复制
    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应用程序终端中没有显示错误。

诚挚的问候

EN

回答 1

Stack Overflow用户

发布于 2015-01-25 18:36:12

我也有同样的问题,试着添加meteor add ongoworks:security,这应该对你有帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26358290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档