日期:2014-05-16  浏览次数:20457 次

大侠帮忙看下
<script   language=javascript>  
var   retValue=window.confirm( '您確認要滙出全部的資料? ');
if(retValue)
{
window.location= '../colligate/Light_WSLWExportSelect.aspx?sql=   select   Light_WSLWid   from   Light_WSLW   where   Votar_Family= '20075628 '   order   by   Upbuild_Time   desc   &URLS=../info/Light_WSLW.aspx ';
}
else
{
}  
</script>

提示语法错误     应该怎么改

------解决方案--------------------
window.location改称window.href.location试试
------解决方案--------------------
<script language=javascript>
var retValue=window.confirm( '您確認要滙出全部的資料? ');
if(retValue)
{
window.location.href= '../colligate/Light_WSLWExportSelect.aspx?sql= select Light_WSLWid from Light_WSLW where Votar_Family= '20075628 ' order by Upbuild_Time desc &URLS=../info/Light_WSLW.aspx ';
}
else
{
}
</script>