![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
agileclipse
这个作者很懒,什么都没留下…
展开
-
showModalDialog打开的页面需要跳转或刷新
问题描述:使用showModalDialog打开模式窗口(假设为page1.html),如果在page1.html中执行location.href='page2.html'执行页面跳转,则浏览器会在新窗口中打开page2.html,而不会将page1.html跳转到page2.html; 上述情况,在很多场合下都常遇到,具体解决方法如下: 1、在showModalDialog打开的窗口中放入i转载 2014-07-15 19:25:11 · 607 阅读 · 0 评论 -
style中如何直接使用变量
上面的50px我要有一个已经存在并赋值的JS变量start代替,应该怎么写? js在方法中写: var div=document.getElementById("这个DIV的ID");//得到这个DIV。 div.style.top=start+'px'转载 2014-07-15 19:26:37 · 5832 阅读 · 0 评论