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

这个为何? 被alert出来是2005 1975?
<script   language=javascript>
function   mobiletelephone_delete(id,dd1,dd2)

{
alert(dd1);
alert(dd2);
if(confirm( "您确认要删除此分类! "))
{
alert(location.href= "mobiletelephone_delete.php?id= "+id+ "&dd1= "+dd1+ "&dd2= "+dd2);
}
}


mobiletelephone_delete(2,2007-01-01,2007-01-31);
</script>

------解决方案--------------------
认为是计算了~~

2007-01-01=2007-1-1
2007-01-31=2007-1-31
要被认为为字符
加引号