_js 数组shitt">
赞
踩
删除数组的第一个元素:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">
var arr = ["康熙","雍正"];
var a = arr.shift();
console.log(arr);
</script>
</head>
<body>
</body>
</html>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。