<script type="text/javascript" language="javascript">
var array = [1, "whicet", ["whicet", "is", "a","man"]];
for(var i=0; i<array.length; i++)
{
if(condition)
{
for(var j=0; j<array[i].length; j++)
{
alert(array[i][j]);
}
}
else
{
alert(array[i]);
}
}
</script>
打印结果应该为:1 whicet whicet is a man
其中的condition如何写呀?
谢谢!