--- id: bad87fee1348bd9aedf08817 title: Make Dead Links Using the Hash Symbol challengeType: 0 videoUrl: '' localeTitle: 使用哈希符号制作死链接 --- ## Description
有时你想添加a元素到你的网站,你知道他们会链接之前。当您使用JavaScript更改链接的行为时,这也很方便,我们将在稍后了解。
## Instructions
href属性的当前值是指向“http://freecatphotoapp.com”的链接。将href属性值替换为# (也称为哈希符号)以创建死链接。例如: href="#"
## Tests
```yml tests: - text: 您a元素应该是一个死链接, href属性的值设置为“#”。 testString: 'assert($("a").attr("href") === "#", "Your a element should be a dead link with the value of the href attribute set to "#".");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

```
## Solution
```js // solution required ```