我有以下代码用于将一个关联数组复制到另一个,
<script>
var some_db = new Array();
some_db["One"] = "1";
some_db["Two"] = "2";
some_db["Three"] = "3";
var copy_db = new Array();
alert(some_db["One"]);
copy_db = some_db.slice();
alert(copy_db["One"]);
</script>
但是第二个警报说“未定义”..我在这里做错了吗?请任何指点...