Iframe易于嵌套及管理页面,但经常遇到跨域、父子页面访问问题,对于子页面访问父页面可以兼容性地通过window.Top或window.Parent或window.frameElement等操作,但对于标题中四个对象,一直没有完整测试过,故买个苦力,分享给大家。 结论: 1. 就浏览器而言(横向)...
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-07-16 20:44:52
阅读次数:
158
"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...
top:永远指分割窗口最高层次的浏览器窗口;parent:包含当前分割窗口的父窗口,本文将围绕js中top、parent、frame进行讲述及他们的应用案例引用方法top: 该变量永远指分割窗口最高层次的浏览器窗口。如果计划从分割窗口的最高层次开始执行命令,就可以用top变量。 parent: 该变...
分类:
Web程序 时间:
2014-07-16 20:02:39
阅读次数:
560
在Linux下执行svn add *时出现如下错误:svn: Valid UTF-8 data(hex: 4b)followed by invalid UTF-8 sequence(hex: fc 63 68 65)出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很...
分类:
系统相关 时间:
2014-07-13 08:03:13
阅读次数:
324
前几天发布应用时出现了如下所示的一段错误提示信息:weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUNDproblem: cvc-enumeration-valid: string value '3.0' is ...
分类:
Web程序 时间:
2014-07-13 00:53:05
阅读次数:
367
报错的代码是:
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
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-07-12 22:43:17
阅读次数:
267
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a ...
分类:
其他好文 时间:
2014-07-12 20:10:54
阅读次数:
165
当您试图从单独的线程更新一个win form时,您将得到如下错误信息:"Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was creat...
分类:
数据库 时间:
2014-07-12 14:04:15
阅读次数:
337