为什么是1 3才可以 输出爱你 不是左闭右开吗
<!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,4));
</script>
</head>
<body>
</body>
</html>