
2.6、JavaScript
zoohouse
这个作者很懒,什么都没留下…
展开
-
javascript 中的location
location.pathname: 返回URL的域名(域名IP)后的部分。例如http://www.joymood.cn/wordpress/返回/wordpress/,又或则http://127.0.0.1/index.html 返回/index.html,注意是带url的域名或域名IP,在磁盘上随便建个Html文件进行location.pathname测试,如浏览器上的路径是: C:\D转载 2011-12-21 09:56:41 · 612 阅读 · 0 评论 -
JavaScript中的知识点细节
简单的数据类型只有undefined, null, boolean, number和string。 typeof(undefined)返回的也是undefined。 typeof(null)返回object,但null并非object,具有null值的变量也并非object。 typeof(NaN)和typeof(Infinity)都返回Number。NaN参与任何数值计算的结果都是NaN,转载 2012-04-16 12:55:02 · 671 阅读 · 0 评论 -
Javascript刷新页面的几种方法(页面刷新与弹出窗口问题解决方法)
window.location.reload(); 使用window.open()弹出的弹出窗口,刷新父窗口 非模态刷新父页面 :window.opener.location.reload() 使用window.showDialog弹出的模式窗口 模态刷新父页面 :window.dialogArguments.location.reload(); 先来看一个简单的例子:转载 2012-05-20 16:24:50 · 8110 阅读 · 0 评论 -
updatepanel控件中弹出子窗口,子窗口操作成功后自动关闭并刷新父页面
在子窗口中,要用JS实现top.window.location.href='/Content/ManageTopNav.aspx?catalogid=7';时,由于父窗口中有updatepanel控件,所以不能刷新成功。 在后台代码中使用Response.Write("top.window.location.href='/Content/ManageTopNav.aspx?catalogid=7原创 2012-05-20 16:54:46 · 2498 阅读 · 0 评论