小组件


网站各处经常能看到概念小部件和练习小部件。它们长这样:

它们还会根据用户的具体情况显示提示框,如下所示:

你也可以在 Markdown 文档中自己渲染这些小部件,比如放在文档末尾,推荐一些延伸阅读,或者推荐一些值得一练的练习。

**注意:**你也可以对行内文字使用普通链接,网站同样会为它们加上提示框。详情请见内部链接文档。

用法

只要能用 Markdown 的地方就能使用小部件,比如文档、解题思路,以及学员与导师的讨论。

它们用以下格式渲染:

[<type>:<id>]()

<type>和<id>两部分是变量,取决于实际使用的小部件。

链接引用,也就是()中的内容,会被网站忽略。出于维护的目的,你可以把它们指向任何地方。

练习小部件

链接格式:[exercise:<track-slug>/<exercise-slug>]()

示例

Great job on solving this exercise! Some other exercises that you might also like to try:

- [exercise:fsharp/anagram]()
- [exercise:fsharp/isogram]()

概念小部件

链接格式:[concept:<track-slug>/<concept-slug>]()

示例

There are three primary conditional statements that are used in Julia:

- [concept:julia/if-statements]()
- [concept:julia/ternary-operator]()
- [concept:julia/short-circuiting]()

解题思路小部件

链接格式:[approach:<track-slug>/<exercise-slug>/<approach-slug>]()

示例

Here are some approaches you might want to checkout!

- [approach:csharp/two-fer/method-overloading]()
- [approach:csharp/two-fer/optional-parameter]()

文章小部件

链接格式:[article:<track-slug>/<exercise-slug>/<article-slug>]()

示例

We have an article you might be interested in:

- [article:csharp/reverse-string/performance]()