freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/take-home-projects/build-a-recipe-box.md

18 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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