摘要: 常用属性: constructor;length;prototype;(不在解释); 常用方法: charAt(index);返回指定位置的字符。 concat(stringX);连接字符串。 indexOf(searchvalue);返回某个指定的字符串值在字符串中首次出现的位置。 link(ur 阅读全文
posted @ 2017-03-07 15:28 乡野村夫28 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 方法1: <meta http-equiv="refresh" content="5;url=hello.html"> 方法2: <script type="text/javascript"> window.location.href="hello.html";(直接跳转); </script> 方 阅读全文
posted @ 2017-03-07 14:30 乡野村夫28 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 属性主要有三个:constructor;length;prototype; constructor(英文意思:构造器):返回对创建此对象的数组函数的引用。例如:var arr=new Array();arr.constructor=Array; length(英文意思:长度):设置或返回数组中元素的 阅读全文
posted @ 2017-03-07 11:31 乡野村夫28 阅读(345) 评论(0) 推荐(0) 编辑