Toggle navigation
WD Blog
Home
About
Archive
Portfolio
WD Blog
我干了什么 究竟拿了时间换了什么
事件基础内容
"Hello World, Hello Blog"
多数内容来自渡一公开课笔记 另外还有这两篇 javascript事件系统的发展史 javascript event(事件对象)详解 1、ele.onxxx = function (event) {} 兼容性很好,但是一个元素只能绑定一个事件处理程序 基本等同于写在 HTML 行间上 this指向dom <div onclic...
Posted by wudimingwo on December 15, 2018
事件分类
"Hello World, Hello Blog"
1、鼠标事件(不需要小驼峰和大驼峰) click、mousedown、mousemove、mouseup、contextmenu、mouseover、mouseout、 mouseenter、 mouseleave 1 2 3 4 5 mouseenter,mouseleave 不受子元素影响 mouseout,mouseover 受子元素影响. button 返回值,左键: 0,中间: ...
Posted by wudimingwo on December 15, 2018
模拟封装fixed
"Hello World, Hello Blog"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Element.prototype.fixed = (function() { var x = 0, y = 0; return function(x1, y1) { var ele = this; ele.style...
Posted by wudimingwo on December 15, 2018
方向键控制小球运动
"Hello World, Hello Blog"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 <html> <head>...
Posted by wudimingwo on December 15, 2018
插件封装list
"Hello World, Hello Blog"
选项卡 轮播图
Posted by wudimingwo on December 15, 2018
js事件系统的发展史
"Hello World, Hello Blog"
javascript事件系统的发展史
Posted by wudimingwo on December 15, 2018
js加载时间线
"Hello World, Hello Blog"
先把渡一公开课的拿过来 先测试了一下 事件触发顺序是这样的。 document.readyState会依次变化 loading 正在解析 2.interactive 解析完成 此时可以操作dom 3.complete / loaded 加载完成 此时可以操作dom DomContentLoaded 事件在 interactive 和complete之间触发 此时可以...
Posted by wudimingwo on December 15, 2018
← Newer Posts
Older Posts →
FEATURED TAGS
html
css
js
ABOUT ME
我本志不在前端,亦不在编程
半路出家,既然已入坑,就好好爬坑
FRIENDS