File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9
9
<div >
10
10
<label for =" name" >用户名:</label >
11
11
<input type =" text" id =" name" name =" user_name" />
12
- <div >
12
+ </ div >
13
13
<div >
14
14
<label for =" passwd" >密码:</label >
15
15
<input type =" password" id =" passwd" name =" user_passwd" />
Original file line number Diff line number Diff line change @@ -269,10 +269,10 @@ document.referrer
269
269
270
270
它的值有四种可能。
271
271
272
- - visible:页面可见。注意,页面可能是部分可见,即不是焦点窗口,前面被其他窗口部分挡住了。
273
- - hidden: 页面不可见,有可能窗口最小化,或者浏览器切换到了另一个 Tab。
274
- - prerender:页面处于正在渲染状态,对于用于来说 ,该页面不可见。
275
- - unloaded:页面从内存里面卸载了。
272
+ > - ` visible ` :页面可见。注意,页面可能是部分可见,即不是焦点窗口,前面被其他窗口部分挡住了。
273
+ > - ` hidden ` : 页面不可见,有可能窗口最小化,或者浏览器切换到了另一个 Tab。
274
+ > - ` prerender ` :页面处于正在渲染状态,对于用户来说 ,该页面不可见。
275
+ > - ` unloaded ` :页面从内存里面卸载了。
276
276
277
277
这个属性可以用在页面加载时,防止加载某些资源;或者页面不可见时,停掉一些页面功能。
278
278
Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ if (boolValue) {
226
226
// ...
227
227
// </article>
228
228
var article = document .getElementById (' foo' );
229
- foo .dataset .columns // "3"
230
- foo .dataset .indexNumber // "12314"
231
- foo .dataset .parent // "cars"
229
+ article .dataset .columns // "3"
230
+ article .dataset .indexNumber // "12314"
231
+ article .dataset .parent // "cars"
232
232
```
233
233
234
234
注意,` dataset ` 上面的各个属性返回都是字符串。
You can’t perform that action at this time.
0 commit comments