上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>div跟随鼠标移动而移动</title> <style> *{ margin: 0; padding: 0; } #ball{ width: 200px; he 阅读全文
posted @ 2019-05-15 16:26 笨鸟不会飞~~ 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 单体内置对象的定义:由ECMAScript实现提供的、不依赖于宿主环境的对象,这些对象在ECMAScript程序执行之前已经存在了。意思就是说:开发人员不必显式地实例化内置对象,因为他们已经实例化了。 单体内置对象包括:Object、Array、String、Global、Math..... Glo 阅读全文
posted @ 2019-04-25 12:45 笨鸟不会飞~~ 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1、相关概念 正则表达式:是指由一些特殊的特定字符以特定形式组合在一起,进行字符串的匹配、查找、规则验证等。 正则表达式由原子、元字符、模式匹配符组成。 (1)原子:表示想要匹配的字符。 a、使用普通字符充当原子a-z、A-Z、0-9; b、使用特殊的转义字符充当原子; \d 匹配0-9之间任意一个 阅读全文
posted @ 2019-04-24 17:00 笨鸟不会飞~~ 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 小游戏体验——测试王者荣耀的英雄人物 代码如下: 阅读全文
posted @ 2019-04-23 20:17 笨鸟不会飞~~ 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 反转字符串的2种方法 1、使用相关的方法来实现( split() -> reverse() -> join() ) 2、使用for循环实现 注意:实现方法不限于以上2种 阅读全文
posted @ 2019-04-23 19:12 笨鸟不会飞~~ 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 基本包装类型:Boolean、Number、String 一、String 字符串常用方法 1、indexOf() lastIndexOf() 返回相应字符的索引号 2、slice(index1,index2) 截取字符串(要前不要后); 原字符串不受影响 substr(index,num) 原字符 阅读全文
posted @ 2019-04-23 18:53 笨鸟不会飞~~ 阅读(560) 评论(0) 推荐(0) 编辑
摘要: JavaScript高级程序设计第四章知识点梳理 1、基本类型值和引用类型值 基本类型值包括:Boolean、String、undefined、Number、Null 引用类型值:Object 注意:ECMAScript中所有函数的参数都是按值传递的。 2、延长作用域链 当执行流进入下列任何一个语句 阅读全文
posted @ 2019-04-23 11:31 笨鸟不会飞~~ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 电商网站秒杀倒计时实现 CSS代码实现 <style> #container{ width: 190px; height: 275px; background: #e83632; color: #fff; position: relative; } #container .sk_title{ pos 阅读全文
posted @ 2019-04-21 18:17 笨鸟不会飞~~ 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 网站时间显示 代码实现如下: css样式 <style> #show{ width: 460px; height: 100px; border:10px solid pink; border-radius: 20px; margin:0 auto; margin-top: 120px; font-s 阅读全文
posted @ 2019-04-21 17:17 笨鸟不会飞~~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 基于随机数的抽奖器 1、定时器叠加问题,设置一个标志类解决 具体代码如下: css样式 <style> #container{ width: 300px; height: 200px; margin:0 auto; margin-top: 120px; border:1px solid #f90; 阅读全文
posted @ 2019-04-21 16:07 笨鸟不会飞~~ 阅读(475) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页