Type mismatch: cannot convert from String to Location
<scripttype="text/javascript">functioncloseMe(){window.location="LoginServlet?cmd=exi...
<script type="text/javascript">
function closeMe(){
window.location="LoginServlet?cmd=exit";
}
</script>
报警告:Type mismatch: cannot convert from String to Location
如何消除警告? 展开
function closeMe(){
window.location="LoginServlet?cmd=exit";
}
</script>
报警告:Type mismatch: cannot convert from String to Location
如何消除警告? 展开
1个回答
2013-10-31
展开全部
location.href ="LoginServlet?cmd=exit";
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询