代码改变世界

Element对象

2019-06-13 11:50 by 改吧, 391 阅读, 0 推荐, 收藏, 编辑
摘要:HTMLElement也是一个element对象 offsetHeight:height+scroll溢出height+padding clientHeight:height+padding+border 参考链接:https://developer.mozilla.org/zh-CN/docs/W 阅读全文

window对象

2019-06-13 11:16 by 改吧, 330 阅读, 0 推荐, 收藏, 编辑
摘要:innerHeight: window.innerHeight:窗口的高度,页面浏览器高度,包括滚动条高度 innnerWidth:同上 outerHeight: window.outerHeight:整个窗口的整体高度,包括到地址栏那些 outerWidth:同上 screenY: window. 阅读全文

雪花飘落代码

2019-02-26 11:33 by 改吧, 1238 阅读, 1 推荐, 收藏, 编辑
摘要:(function($) { $.fn.snow = function(options) { var $flake = $('').css({ 'position': 'absolute', 'top': '-50px' }).html('❄'), documentHeight = $(document).height(), ... 阅读全文

jQuery,js如何扩展自定义方法

2019-02-21 15:23 by 改吧, 1626 阅读, 0 推荐, 收藏, 编辑
摘要:js String扩展方法 'asdasdasd'.repalceA()"AsdAsdAsd" 阅读全文

正则表达式笔记

2019-02-20 11:36 by 改吧, 256 阅读, 1 推荐, 收藏, 编辑
摘要:1.从span里面拿取一个属性 取出word_extract里面的值的正则表达式 阅读全文

闭包概念

2019-02-19 17:08 by 改吧, 406 阅读, 0 推荐, 收藏, 编辑
摘要:闭包的简单定义是:函数 A 返回了一个函数 B,并且函数 B 中使用了函数 A 的变量,函数 B 就被称为闭包。 阅读全文

babel转换不了有些es6

2019-01-23 17:48 by 改吧, 1390 阅读, 0 推荐, 收藏, 编辑
摘要:bable只转换新语法 不支持新的全局变量如promise async等等,可以使用babel-polyfilll来兼容 阅读全文

performance 判断页面是以哪种方式进入的

2019-01-22 14:49 by 改吧, 533 阅读, 0 推荐, 收藏, 编辑
摘要:if (window.performance) { console.info("window.performance is supported"); console.log(performance.navigation.type) } 阅读全文

$()与document.getElementById

2019-01-10 16:07 by 改吧, 373 阅读, 0 推荐, 收藏, 编辑
摘要:$('#a')是返回一个jquery对象 $('#a')[0]是一个element对象 document.getElementById('a') return 一个element对象 阅读全文

使用jsplumb的一些笔记

2018-11-22 11:36 by 改吧, 2445 阅读, 0 推荐, 收藏, 编辑
摘要:欢迎就是需要使用jsplumb跟正在使用jsplumb的一起讨论 欢迎私聊 1.关于jsplumb的connection的一些事件 ####connection拖动的事件 ####连接废弃 ####在落下来某一个点之前 #### #### #### ####想要拿到连线的点击事件啊,hover事件啊 阅读全文
上一页 1 2 3 4 5 6 7 ··· 24 下一页