摘要: client 可视区域 clientWidth width+padding 阅读全文
posted @ 2016-08-14 16:46 WeWeZhang 阅读(174) 评论(0) 推荐(0) 编辑
摘要: JSON JavaScript Object Notation 时下最流行的数据交换格式 特点 键和值 都必须包裹在引号中 语法 数据在键值对中 数据由逗号分隔 花括号保存对象 方括号保存数组 格式 阅读全文
posted @ 2016-08-14 13:47 WeWeZhang 阅读(94) 评论(0) 推荐(0) 编辑
摘要: scroll scrollTop 被卷去的头部 scrollLeft 被卷去的左边 没有文件头 document.body.scrollTop 其他 document.documentElement.scrollTop 最新的浏览器 window.pageYOffset 阅读全文
posted @ 2016-08-14 10:22 WeWeZhang 阅读(101) 评论(0) 推荐(0) 编辑
摘要: /** * 选中的文本(兼容) **/function funSelectionText() { window.getSelection?window.getSelection().toString():document.selection.createRange().text;} /** * 禁止选中文本(兼容) **/function funClearSelection() { w... 阅读全文
posted @ 2016-08-14 08:10 WeWeZhang 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 事件对象 oEvent 阅读全文
posted @ 2016-08-12 16:28 WeWeZhang 阅读(151) 评论(0) 推荐(0) 编辑
摘要: offset 偏移尺寸 大小相关,content+padding+border offsetWidth 自己的宽度 offsetHeight 自己的高度 定位相关 content+padding 实际上是到有定位的父级的距离 offsetParent body默认有定位 数值,只读,无定位亦可 of 阅读全文
posted @ 2016-08-11 08:43 WeWeZhang 阅读(198) 评论(0) 推荐(0) 编辑
摘要: function funGetClass(className) { if(document.getElementsByClassName) { return document.getElementsByClassName(className); } var aClassDiv = []; var a 阅读全文
posted @ 2016-08-10 16:21 WeWeZhang 阅读(137) 评论(0) 推荐(0) 编辑
摘要: <input id="show" type="file" /> window.onload = function () { var oShow = document.getElementById("show"); oShow.onchange = function () { var filePath 阅读全文
posted @ 2016-08-10 15:08 WeWeZhang 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 注意 32位选X86 64位选X64 下载相关资源包下载VC++https://www.microsoft.com/en-us/download/details.aspx?id=52982下载Apachehttp://httpd.apache.org/download.cgiFiles for Mi 阅读全文
posted @ 2016-08-09 08:10 WeWeZhang 阅读(207) 评论(0) 推荐(0) 编辑
摘要: * { margin: 0; padding: 0;}.show { position: relative; width: 512px; height: 512px; border: 5px solid #C81623; margin: 100px auto; overflow: hidden;}.show i... 阅读全文
posted @ 2016-08-08 17:35 WeWeZhang 阅读(174) 评论(0) 推荐(0) 编辑