大神帮忙看看代码是哪里不对了,为什么不能显示出来
<!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(myarr.slice(myarr1.indexOf("爱"),myarr1.length-1));
</script>
</head>
<body>
</body>
</html>