码迷,mamicode.com
首页 >  
搜索关键字:parent    ( 6866个结果
Jquery取得iframe中元素的几种方法Javascript Jquery获取Iframe的元素、内容或者ID
query取得iframe中元素的几种方法在iframe子页面获取父页面元素代码如下:$('#objId', parent.document);// 搞定...在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').docum...
分类:编程语言   时间:2014-07-16 22:53:40    阅读次数:221
批量运行文件
#coding=utf-8import osimport timedef Rename(foldname): for parent,dirnames,filenames in os.walk(foldname): for filename in filenames: ...
分类:其他好文   时间:2014-07-16 21:11:53    阅读次数:170
各浏览器Iframe对contentWindow、contentDocument、document及frames属性测试
Iframe易于嵌套及管理页面,但经常遇到跨域、父子页面访问问题,对于子页面访问父页面可以兼容性地通过window.Top或window.Parent或window.frameElement等操作,但对于标题中四个对象,一直没有完整测试过,故买个苦力,分享给大家。 结论: 1. 就浏览器而言(横向)...
分类:Windows程序   时间:2014-07-16 21:07:05    阅读次数:240
window.location.href跳转问题2
"window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的if...
分类:Windows程序   时间:2014-07-16 20:06:11    阅读次数:294
<frameset>框架集中不同<frame>之间的调用【js代码中】
top:永远指分割窗口最高层次的浏览器窗口;parent:包含当前分割窗口的父窗口,本文将围绕js中top、parent、frame进行讲述及他们的应用案例引用方法top: 该变量永远指分割窗口最高层次的浏览器窗口。如果计划从分割窗口的最高层次开始执行命令,就可以用top变量。 parent: 该变...
分类:Web程序   时间:2014-07-16 20:02:39    阅读次数:560
多态的使用意义
1.多态(Polymorphism):就是父类型的引用可以指向子类型的对象。 2.Parent p = new Child ();当使用多态调用方法时,首先检查父类有没有该方法,若有,则执行该方法;若没有,则编译错误。 3.一共有两种类型的强制类型转换: a) 向上类型转换(upcast): 比如说将Cat类型转换为Animal类型,即子类型转换为父类型。对于向上类型转换,不需要显式使用强...
分类:其他好文   时间:2014-07-14 13:22:25    阅读次数:212
堆排序及其相关操作
这里记录下堆的相关操作。 op 1: ''' @ data: the heap array @ p : index of parent item @ n : number of data @@ Swap p and it's son items, make p the largest of them ''' def swapForMaxHeap(data, n, p): l...
分类:其他好文   时间:2014-07-13 17:07:15    阅读次数:223
Caused by: Unable to locate parent package [json-default] for [class com.you.user.action.StudentActi
1、错误描述 信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser) 2014-7-13 1:52:04 org.apache.struts2.spring.StrutsSpringObjectFactory info 信息: Initializing Struts-Spring integration.....
分类:Web程序   时间:2014-07-13 14:09:58    阅读次数:639
解决alaert.builder二次调用报错的bug
报错的代码是: The specified child already has a parent. You must call removeView() on the child's parent first 大致是说你的弹出框中的view已经绑定了一个paren,就是你的弹出框。当你再次调用显示的时候,他以为你又要绑定到一个新的窗口上去。解决的方法是每次显示之前都重新填充设置view.如下:...
分类:其他好文   时间:2014-07-12 23:50:41    阅读次数:354
自定义ActionBar标题与菜单中的文字样式
自定义标题文字样式 标题样式是ActionBar样式的一部分,所以要先定义ActionBar的样式 name="AppTheme" parent="AppBaseTheme"> name="android:actionBarStyle">@style/CustomActionBar 然后在ActionBar的样式中通过android:titleTextStyle定义标题的样...
分类:其他好文   时间:2014-07-12 23:15:10    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!