摘要: <div id="box" class="div" style="width: 30px;height: 50px;" name="nana">我是一个文本节点<!--我是注释节点--><span name="nana">我是一个span标签</span></div> <script type="t 阅读全文
posted @ 2018-09-10 18:01 闹什么闹 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 数组对象用来在单独的变量名中存储一系列的值。 Array 对象属性 Array 对象方法 对象没有length属性 <script type="text/javascript"> var arr=[]; arr[0]='a'; arr[1]='b'; arr.shift(); //开头删除 arr. 阅读全文
posted @ 2018-09-10 09:13 闹什么闹 阅读(90) 评论(0) 推荐(0) 编辑
摘要: RegExp 是正则表达式的缩写。 RegExp 对象用于存储检索模式。 RegExp 对象的方法 RegExp 对象有 3 个方法:test()、exec() 以及 compile()。 test() test() 方法检索字符串中的指定值。返回值是 true 或 false。 exec() ex 阅读全文
posted @ 2018-09-10 08:30 闹什么闹 阅读(101) 评论(0) 推荐(0) 编辑