会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小确幸qh
博客园
首页
新随笔
联系
管理
订阅
2016年11月24日
弹出框
摘要: 方法一 自定义弹出框: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>PopAlert</title> <link rel="stylesheet" href="res/Alert.css"></head><b
阅读全文
posted @ 2016-11-24 21:34 小确幸qh
阅读(107)
评论(0)
推荐(0)
2016年11月23日
BMI
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>BMI</title> <link rel="stylesheet" href="bmi.css"></head><body> <div id="top"></di
阅读全文
posted @ 2016-11-23 20:52 小确幸qh
阅读(337)
评论(0)
推荐(0)
2016年11月22日
认识原型
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>06-认识原型</title> <script> function Person(name,sex,age){ this.name = name; this.sex
阅读全文
posted @ 2016-11-22 09:26 小确幸qh
阅读(118)
评论(0)
推荐(0)
函数继承
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>05-继承的概念</title> <script> /* function Dog (color,name){ this.skinColor = color; th
阅读全文
posted @ 2016-11-22 09:23 小确幸qh
阅读(705)
评论(0)
推荐(0)
apply和call的用法
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>04-apply和call方法</title> <script> // apply和call方法 // 作用:可以设置函数的具体调用者,来修改函数的作用域 // 第
阅读全文
posted @ 2016-11-22 09:13 小确幸qh
阅读(164)
评论(0)
推荐(0)
构造函数
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>03-构造函数</title> <script> // 构造函数就是一种专门用来创建对象的一种函数 // 使用系统原生的构造函数创建对象 // var studen
阅读全文
posted @ 2016-11-22 08:54 小确幸qh
阅读(164)
评论(0)
推荐(0)
函数(工厂模式)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>02-工厂模式</title> <script> /* // 函数在执行的时候,执行环境的作用域是当前函数的调用者 function testThis (){ co
阅读全文
posted @ 2016-11-22 08:47 小确幸qh
阅读(213)
评论(0)
推荐(0)
函数
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>02-工厂模式</title> <script> /* // 函数在执行的时候,执行环境的作用域是当前函数的调用者 function testThis (){ co
阅读全文
posted @ 2016-11-22 08:44 小确幸qh
阅读(134)
评论(0)
推荐(0)
关于对象(访问)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>01-回顾对象</title> <script> // 字面量定义对象 // 定义对象属性的方式:驼峰命名法,以字母、下划线、$开头,之后可以使用字母、下划线、$、
阅读全文
posted @ 2016-11-22 08:42 小确幸qh
阅读(190)
评论(0)
推荐(0)
2016年11月21日
猜拳(while循环)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>猜拳</title></head><body> </body> <script> var isRight = false; var errCount = 0; va
阅读全文
posted @ 2016-11-21 09:25 小确幸qh
阅读(456)
评论(0)
推荐(0)
下一页
公告