--- id: bad87fee1348cd8acef08813 title: Call out Optional Actions with btn-info challengeType: 0 videoUrl: '' localeTitle: 使用btn-info调出可选操作 --- ## Description
Bootstrap带有几种预定义的按钮颜色。 btn-info类用于引起对用户可以采取的可选操作的注意。使用文本“Info”在“Like”按钮下创建一个新的块级Bootstrap按钮,并向其添加Bootstrap的btn-infobtn-block类。请注意,这些按钮仍然需要btnbtn-block类。
## Instructions
## Tests
```yml tests: - text: 使用文本“Info”创建一个新的button元素。 testString: assert(new RegExp("info","gi").test($("button").text())); - text: 两个Bootstrap按钮都应该有btnbtn-block类。 testString: assert($("button.btn-block.btn").length > 1); - text: 你的新按钮应该有类btn-info 。 testString: assert($("button").hasClass("btn-info")); - text: 确保所有button元素都有一个结束标记。 testString: assert(code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```