39 lines
1.9 KiB
Markdown
39 lines
1.9 KiB
Markdown
|
---
|
|||
|
id: bd7155d8c242eddfaeb5bd13
|
|||
|
title: Build a Recipe Box
|
|||
|
isRequired: false
|
|||
|
challengeType: 3
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 建立配方盒
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">CodePen.io</a>应用程序: <a href="https://codepen.io/freeCodeCamp/full/dNVazZ/" target="_blank">https</a> <strong>:</strong> <a href="https://codepen.io" target="_blank">//codepen.io/freeCodeCamp/full/dNVazZ/</a> 。完成以下<a href="https://en.wikipedia.org/wiki/User_story" target="_blank">用户故事</a> 。使用您需要的任何库或API。给它你自己的个人风格。 <strong>用户故事:</strong>我可以创建具有名称和成分的食谱。 <strong>用户故事:</strong>我可以看到一个索引视图,其中所有配方的名称都是可见的。 <strong>用户故事:</strong>我可以点击任何这些食谱来查看它。 <strong>用户故事:</strong>我可以编辑这些食谱。 <strong>用户故事:</strong>我可以删除这些食谱。 <strong>用户故事:</strong>我添加的所有新食谱都保存在浏览器的本地存储中。如果我刷新页面,这些配方仍然会在那里。 <strong>提示:</strong>您应该在CodePen上为本地存储密钥添加前缀,即<code>_username_recipes</code>如果卡住,请记住使用<a href="//github.com/FreeCodeCamp/freecodecamp/wiki/FreeCodeCamp-Get-Help" target="_blank">Read-Search-Ask</a> 。完成后,单击“我已完成此挑战”按钮并包含指向CodePen的链接。您可以通过Facebook上的朋友分享您的项目反馈。 </section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests: []
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|