在使用iframe的页面中,我们经常会有需求需要在iframe里面对父级页面进行相关操作,在我看来这些问题的关键还是: 在iframe里面获取到父页面对象,其它的操作问题也就迎刃而解了,所以我们关键的一步是: var pbody = $(window.parent.document.body); 以 ...
分类:
其他好文 时间:
2016-05-27 16:39:28
阅读次数:
127
static(关键字) 类似于 self(关键字) , 但它指向的是被调用的类(Document) 而不是包含类(DomainObject) , static 和 self 的区别: 以前你这么写: 现在这么写 好处: 可以节省大量重复代码~ ...
分类:
Web程序 时间:
2016-05-27 16:13:45
阅读次数:
170
js一些痛点 window.onload第2个会把第一个覆盖 容错性差 document.getElementById("cuowu")—>null—>报错 兼容性innerText jq min压缩版本 在开发过程中用未压缩版本 或者压缩的 项目上线要要未压缩版本 版本问题 1.xxx 2.xxx... ...
分类:
其他好文 时间:
2016-05-27 14:43:02
阅读次数:
153
一、event事件 1、什么是event事件对象? 用来获取事件的详细信息:鼠标位置、键盘按键 ——例子:获取鼠标位置:clientX ——document的本质:document.childNodes[0].tagName (1)首先对于点击事件,如果我们想要在页面打开后,在页面的任何一个地方点击 ...
分类:
Web程序 时间:
2016-05-27 11:06:54
阅读次数:
213
JDWP Agent Implementation Description Revision History Disclaimer 1. About this Document 1.1 Purpose 1.2 Intended Audience 1.3 Using This Document 1.4 ...
分类:
其他好文 时间:
2016-05-27 11:01:39
阅读次数:
237
前端动画效果:http://daneden.github.io/animate.css/ To use animate.css in your website, simply drop the stylesheet into your document's <head>, and add the c ...
分类:
Web程序 时间:
2016-05-27 11:01:07
阅读次数:
269
1. 禁止右键点击$(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; });});2. 隐藏搜索文本框文字Hide when clicked in the search fie ...
分类:
Web程序 时间:
2016-05-27 10:56:42
阅读次数:
242
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> cookie 保存数据 document.cookie=name+'='+value+';expires='+date; //name=shiyou ;expires=Tue Ma ...
分类:
其他好文 时间:
2016-05-27 10:47:22
阅读次数:
272
// event(事件)工具集,来源:github.com/markyun markyun.Event = { // 页面加载完成后 readyEvent : function(fn) { if (fn==null) { fn=document; } var oldonload = window.o ...
分类:
其他好文 时间:
2016-05-27 07:05:24
阅读次数:
133
1. 禁止右键点击 $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; });});2. 隐藏搜索文本框文字Hide when clicked in the search fi ...
分类:
其他好文 时间:
2016-05-26 18:59:01
阅读次数:
187