摘要: 窗口间的通信A页面无标题文档 B页面无标题文档 这是b.com的postMessage.html页面上面是父级操作子级,下面是子级操作父级无标题文档 这里是a.com下的2.iframe.html页面 ajax跨域请求ie下无标题文档 ajax无刷新上传无标题文... 阅读全文
posted @ 2015-11-08 16:16 Mi文 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 初始canvas 不支持canvas浏览器window.onload = function(){ var oC = document.getElementById('c1'); var oGC = oC.getContext('2d'); //webgl : 3D绘图};绘制实心和空心... 阅读全文
posted @ 2015-11-08 15:58 Mi文 阅读(143) 评论(0) 推荐(0) 编辑
摘要: var oSwitch = function(el, options) { this.dom = null; this.header = null; this.footer = null; return new oSwitch.prototype.init(el, optio... 阅读全文
posted @ 2015-11-08 15:15 Mi文 阅读(174) 评论(0) 推荐(0) 编辑
摘要: function getByClass(parent, tagname, classname) { / var aEls = parent.getElementsByTagName(tagname); var arr = []; var re = new R... 阅读全文
posted @ 2015-11-08 15:02 Mi文 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 a b c解决火狐下的拖拽问题必须设置dataTransfer对象的setData方法才可以拖拽除图片外的其他标签window.onload = function(){ var oUl = document.getElementsByTagName('ul')[0... 阅读全文
posted @ 2015-11-08 15:01 Mi文 阅读(215) 评论(0) 推荐(0) 编辑