0

jQuery ウィーク カレンダー https://github.com/themouette/jquery-week-calendar/wiki を使用して既存のミーティングを Web ページに表示しようとしています。お気に入り

[{"id":"2","title":"Analytics","body":"Analytics","start":"2012-08-14 12:00:00","end":"60"},{"id":"8","title":"bvxc","body":"bvxc","start":"2012-08-17 12:00:00","end":"60"},{"id":"9","title":"anyp","body":"anyp","start":"2012-08-17 13:00:00","end":"60"},{"id":"16","title":"Analytbfn","body":"Analytbfn","start":"2012-08-17 10:45:00","end":"2012-08-17 12:30"},{"id":"17","title":"Analytbfn","body":"Analytbfn","start":"2012-08-16 08:00:00","end":"2012-08-16 10:15"},{"id":"18","title":"Analytbfn","body":"Analytbfn","start":"2012-08-18 07:30:00","end":"2012-08-18 11:00"}]

しかし、これらのデータはカレンダーに読み込まれていません

私の demo.js ファイルについてはhttp://dpaste.com/788236/を見てください どこが間違っているのか教えてください

4

2 に答える 2

0

イベントのコレクションに値が設定された「events」という名前のプロパティを持つ JSON オブジェクトを返す必要があります。また、最初の 3 つのイベントの「終了」パラメーターも正しくありません。期間 (60) ではなく、予定の終了日時を示す必要があります。

これはうまくいきます:

{
 events: [{ "id": "2", "title": "Analytics", "body": "Analytics", "start": "2012-08-14 12:00:00", "end": "2012-08-14 13:00:00" }, { "id": "8", "title": "bvxc", "body": "bvxc", "start": "2012-08-17 12:00:00", "end": "2012-08-17 13:00:00" }, { "id": "9", "title": "anyp", "body": "anyp", "start": "2012-08-17 13:00:00", "end": "2012-08-17 14:00:00" }, { "id": "16", "title": "Analytbfn", "body": "Analytbfn", "start": "2012-08-17 10:45:00", "end": "2012-08-17 12:30" }, { "id": "17", "title": "Analytbfn", "body": "Analytbfn", "start": "2012-08-16 08:00:00", "end": "2012-08-16 10:15" }, { "id": "18", "title": "Analytbfn", "body": "Analytbfn", "start": "2012-08-18 07:30:00", "end": "2012-08-18 11:00"}]
    }
于 2012-08-18T21:14:01.677 に答える