addyosmani / addyosmani/backbone-fundamentals

"Client-Side MVC - Backbone Style" example not working as described

未关闭
#473 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug confirmed
主要语言
Rich Text Format
星标
9.2k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

The description of the example in the Client-Side MVC - Backbone Style section states the following:

"In our example, the render() method uses a template to construct the HTML for the Todo item which is placed inside a li element."

When I run the example there is no li element to be found. The underscore template markup (a div wrapper and an input element) is simply injected into the "todo" div in the main HTML page.

As a complete newbie to Backbone, I could easily be missing something, but it appears the description does not match what the code is actually doing. This is a bit disheartening as this is the first example in the book.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。