This file contains 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
技术人员应该如何让产品合理的妥协? | |
即能保证产品的版本迭代,又能合理的把握项目开发周期。 | |
你是如何做的? |
This file contains 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
缘起小胡子哥的一条微博:http://www.weibo.com/1812166904/BtVqukXkq?type=comment#_rnd1414637645445 | |
如何学习前端? | |
这个学不是指入门学习,还是到一个瓶颈期, | |
如何突破自我,超越自我,向更高水平提升? | |
有经验的分享一下。 |
This file contains 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
用原生js仿照:http://iwan.baidu.com/中间轮换图片。 | |
里边的html,css,img已经抓下来,在下面仓库中: | |
https://github.com/jikeytang/frontcode | |
可以用webstorm或其它工具check出来, | |
只要求写js实现。 | |
PS: | |
答案贴在后边的评论中,只贴github地址。 | |
比如只贴这个地址: | |
https://github.com/jikeytang/frontcode/blob/master/slide/bd01.html |
This file contains 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
A,B有两个数组,A递增数组,B递减数组。 | |
请用最优的js代码找出A、B两个数组中交集的第K个元素。 | |
比如: | |
var A = [3,4,5,6,7,8,9]; | |
var B = [12,10,8,6]; | |
交集的元素有6,8, | |
第1个元素是6,第2个元素是8。 | |
那么js是这样: | |
function getNum(a, b, k){ | |
// code |
This file contains 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
用最优的代码实现: | |
如何判断出字符串 b 中的每一个字符,在 a 中是否存在。 | |
比如: | |
var a = 'lkjgfaoids'; | |
var b = 'adc'; | |
ad存在,c不存在。 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 |
This file contains 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
有个函数,他有2个参数a和b, 实现主要的功能是计算出1在a和b之间出现的次数, | |
比如:a=1024,b=1032,那么a和b之间的数就是: | |
1024 1025 1026 1027 1028 1029 1030 1031 1032 | |
则有10个1出现在这些数中,那么函数返回的值就是10。 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript |
This file contains 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.按照CommonJS规范,在任何模块代码的作用域下内置了以下哪些变量? | |
module | |
A. context | |
B. require | |
C. exports | |
· | |
2.以下关于application cache的说法,哪些是不正确的? | |
A. 对于目标页面而言,可以通过来启用application cache。 | |
B. 对于启用了application cache的页面,该页面默认不会被缓存。 | |
C. manifest文件仅在初次访问站点时才会被下载。 |
This file contains 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,按三位数的结果进行排列组合。 | |
得到的结果如下所示: | |
1,2,3, | |
1,2,4, | |
1,3,4, | |
2,3,4, | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 |
This file contains 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
function f(){ return f; } | |
new f() instanceof f; | |
求出以上表达式的值,为什么? | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code |
This file contains 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
// 感谢:广州-坚壳 推荐 | |
abcde五位数,乘以a就等于eeeeee六位数,用JS求出a,b,c,d,e所代表的数字。 | |
式子如:abcde * a = eeeeee | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` |
NewerOlder