上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 67 下一页
摘要: 1222222222222222222222222222222222222222222222222222222222222222333333333333333333333333333333333333 阅读全文
posted @ 2016-10-31 15:58 贝尔塔猫 阅读(233) 评论(0) 推荐(0)
摘要: People read on the web用户在网站上阅读 People only read word-by-word on the web when they are really interested in the content. 用户只有对他们感兴趣的内容,才会一个字一个字的去阅读 The 阅读全文
posted @ 2016-10-31 15:10 贝尔塔猫 阅读(209) 评论(0) 推荐(0)
摘要: es6 + 模块化封装 "use strict"; module.exports = { //参数,中文字符串 //返回值:拼音首字母串数组 makePy (str) { if (typeof(str) != "string") throw new Error(-1, "函数makePy需要字符串类 阅读全文
posted @ 2016-10-27 15:12 贝尔塔猫 阅读(944) 评论(0) 推荐(0)
摘要: 正常来说已经使用es6 的 模板了如`` 但极少情况下还是使用原始的拼接,以下这种方法会比较舒服 阅读全文
posted @ 2016-10-24 13:50 贝尔塔猫 阅读(1236) 评论(0) 推荐(0)
摘要: height: 55px white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 阅读全文
posted @ 2016-10-23 08:43 贝尔塔猫 阅读(746) 评论(0) 推荐(0)
摘要: let date = new Date(); let year = date.getFullYear(); let money = money = date.getMonth() + 1; let day = day = date.getDate(); let week = date.getDay( 阅读全文
posted @ 2016-10-22 11:44 贝尔塔猫 阅读(160) 评论(0) 推荐(0)
摘要: 神坑记录: 1、transform: translate3d(80%,0,0); 无法作为参数,必须修改为这种:translateX: 0% 官方文档 github地址 npm下载安装 调试地址 坑点和注意点: 理论来说,JS对于操作CSS的权限应该是最大的。但是经过实践。我发现 Velocity 阅读全文
posted @ 2016-10-21 10:59 贝尔塔猫 阅读(1404) 评论(0) 推荐(0)
摘要: 经常碰到这样的问题。可能会走偏。 正确的做法其实就是在window的mouseup中书写事件。而且该事件必须是setTimeout中。 以下是vue的demo 2、其实有更简单的思路 // 点击屏幕任何角落,隐藏$ul $(document).on("click", function(e){ $ul 阅读全文
posted @ 2016-10-20 16:48 贝尔塔猫 阅读(642) 评论(0) 推荐(0)
摘要: javascript事件列表解说 事件 浏览器支持 解说 一般事件 onclick IE3、N2 鼠标点击时触发此事件 ondblclick IE4、N4 鼠标双击时触发此事件 onmousedown IE4、N4 按下鼠标时触发此事件 onmouseup IE4、N4 鼠标按下后松开鼠标时触发此事件 onmouseover IE3、N2 当鼠标移动到某对象范围的... 阅读全文
posted @ 2016-10-20 16:33 贝尔塔猫 阅读(3313) 评论(0) 推荐(0)
摘要: Knuth-Durstenfeld Shuffle Fisher-Yates 洗牌算法的一个变种是 Knuth Shuffle 每次从未处理的数组中随机取一个元素,然后把该元素放到数组的尾部,即数组的尾部放的就是已经处理过的元素,这是一种原地打乱的算法,每个元素随机概率也相等,时间复杂度从 Fish 阅读全文
posted @ 2016-10-15 15:21 贝尔塔猫 阅读(666) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 67 下一页