提交 edbb09e1 编写于 作者: R Richard Macklin

Avoid implying that `#results` selector will only match a `div` element

The sample code above this sentence uses the selector `#results` which
will match any element with the `id` attribute of `results`, but the
sentence was previously implying that it had to be specifically a `div`
element.
上级 8dca5162
......@@ -48,7 +48,7 @@ fetch("/test")
});
```
This code fetches data from "/test", and then appends the result to the `div`
This code fetches data from "/test", and then appends the result to the element
with an id of `results`.
Rails provides quite a bit of built-in support for building web pages with this
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册