704 B
704 B
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
bad87fee1348bd9aedf08817 | 用 # 号来创建链接占位符 | 0 | https://scrimba.com/p/pVMPUv/cMdkytL | 18230 |
--description--
有时你想为网站添加一个 a
,但如果你还不确定要将它链接到哪儿,这时可以使用链接占位符。
在后面的课程中我们会学到:如何轻松通过JavaScript
更改链接指向的地址。
--instructions--
href
属性的当前值是指向 "https://freecatphotoapp.com
",将href
属性的值替换为#
,就可以创建固定链接。
例如: href="#"
--hints--
a
的href
属性应为 "#"。
assert($('a').attr('href') === '#');