--- id: bad87fee1348bd9aec908857 title: 使用注释来说明代码 challengeType: 0 forumTopicId: 18347 dashedName: use-comments-to-clarify-code --- # --description-- 使用 jQuery 时,修改 HTML 元素时并不需要直接修改 HTML 代码。 必须确保让每个人都知道不应该直接修改此页面上的这些代码。 记住,可以在 `` 为结束的地方进行评论注释。 请你在 HTML 顶部加如下一段注释: `Code below this line should not be changed` 。 # --hints-- 应该在 HTML 顶部增加此代码 `.*this line))\s*.*this line.*\s*-->/gi)); ``` 注释应该用 `-->` 进行闭合。 ```js assert(code.match(/-->.*\n+.+/g)); ``` 注意,注释的开始标签和闭合标签数量应该一一对应,保持数量一致。 ```js assert(code.match(//g).length); ``` # --seed-- ## --seed-contents-- ```html

jQuery Playground

#left-well

#right-well

``` # --solutions-- ```html

jQuery Playground

#left-well

#right-well

```