--- 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

```