为什么-1 -2没有输出结果,不是从后面算起的吗?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Array对象 </title>
<script type="text/javascript">
var myarr1= ["我","爱","你"];
document.write(myarr1.slice(-1,-2));
</script>
</head>
<body>
</body>
</html>