<!--
,结束标记是-->
。
现在你需要在h2
元素前终止注释。
h1
元素和p
元素,保留h2
元素。
h1
元素,这样它就从网页上消失了。'
testString: assert(($("h1").length === 0));
- text: 'h2
元素保持原样,这样网页上还能看到它。'
testString: assert(($("h2").length > 0));
- text: '注释掉p
元素,这样它就从网页上消失了。'
testString: assert(($("p").length === 0));
- text: '确保每一个注释都以-->
结尾。'
testString: assert(code.match(/[^fc]-->/g).length > 1);
- text: '不要更改h1
元素、h2
元素、p
元素的顺序。'
testString: assert((code.match(/<([a-z0-9]){1,2}>/g)[0]==="") ); ```