javascript:window.showModalDialog缓存问题

来源:互联网 发布:js退出for循环 编辑:程序博客网 时间:2024/05/02 03:06

window.showModalDialog会有缓存,导致第二次不进入pageload,解决方法:跟一个随机的参数:

          var time =new Date();
          var iWidth=840;
          var iHeight=350;
          var retval = window.showModalDialog('CustomerChargeDetail.aspx?HouseID=' + HouseParam+"&time="+time,'son','dialogwidth:'+iWidth+'px;dialogheight:'+iHeight+'px;help:no;status:no;scroll:directories:no;scrollbars:no;Resizable=no;')

 

 

或者:

<head></head>里加<meta   http-equiv="Pragma"   content="no-cache"> 

原创粉丝点击