This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
请阐述以下session, cookies, userdata,sessionStorage 和 localStorage 的区别? | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```html | |
// you code | |
``` | |
2. 也可以粘贴jsfiddle地址,比如: | |
http://jsfiddle.net/jikeytang/Rmt8M/ | |
评论支持markdown语法。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
什么是html标签的语义化?以下各组标签有什么区别? | |
1. strong,b | |
2. em,i | |
3. ul li, ol li,dl dt dd, datalist, nav | |
4. div, p | |
5. article, section, aside | |
6. blockquote, cite, q | |
7. canvas, object, embed | |
8. figure, h1...h6 | |
9. header,main,footer,div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
以下四种doctype有什么区别,分别对页面有什么影响? | |
<!DOCTYPE html> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " | |
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何进行一个深拷贝,是数组且去重。 | |
如:[1,2,3],[2,3,4,5] -> [1,4,5] | |
[1,2,3], {a:6, b:3} -> [1,2,3, a:6, b:3] | |
就是如何简单实现类jquery的$.extend(true, a, b)的效果。 | |
但与 | |
jQuery.extend(true,[1,2,3],[2,3]) // [2,3,3] | |
区别是题目要求得到是: 2,3,取其中不重复的。 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何实现以下代码: | |
[1,2,3,4,5].copyReverse(); // [1,2,3,4,5,4,3,2,1] | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何实现以下代码: | |
[1,2,3,4,5].copy(); // [1,2,3,4,5,1,2,3,4,5] | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何将颜色值十六进制,RGB相互转换? | |
如:#ffffff转换为:RGB(255,255,255) | |
RGB(23, 245, 56)转换为:#17f538 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript里typeof返回的结果有哪几种? | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
请实现javascript 1.8的filter方法 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 | |
3. 今天只来一发。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
根据input输入情况,检验密码的强度,规则如下: | |
1. 纯数字,纯字母为:弱。 | |
2. 数字与字母组合为:中。 | |
3. 数字,字母,特殊字符@#$%^&*_+[]{}组合为:强。 | |
4. 以上长度必为8位以上。 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code |