会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
I'm new
上一页
1
2
3
4
5
6
7
8
下一页
2016年5月31日
JS内置对象
摘要: 字符串对象 日期对象 数组对象 Math对象
阅读全文
posted @ 2016-05-31 16:02 I'm new
阅读(130)
评论(0)
推荐(0)
编辑
JS创建自定义对象
摘要: 普通对象的创建: 创建对象: 1、people = new Object(); people.name = "lin"; people.age = "26“; 2、创建字典对象 people = {name:"lin",age:"30"}; 3、通过set方法创建对象 function people
阅读全文
posted @ 2016-05-31 15:17 I'm new
阅读(510)
评论(0)
推荐(0)
编辑
dom添加事件
摘要: 1.语法:document.getElementById('btn').addEventListener 2.可以添加多个EventListener,且不会覆盖 3、移除EventListener, document.getElementById('btd').removeEventListener
阅读全文
posted @ 2016-05-31 14:37 I'm new
阅读(141)
评论(0)
推荐(0)
编辑
dom对象操作Html,Css
摘要: HTML: 1、不要再文档加载完使用document.write,这样会创建新的dom对象,原来的元素将被覆盖。 2、获取元素,通过getElementbyID; getElementbyTag("p")(相同元素的第一个) 3、改变属性.getElementbyID('id').href="www
阅读全文
posted @ 2016-05-31 14:18 I'm new
阅读(148)
评论(0)
推荐(0)
编辑
JS事件
摘要: 1、onClick 、onMouseOver(经过)、onMouseOut 、 onChange(文本内容输入)、onSelect(文本框选中)、onFocus(光标选中),onBlur(光标移开), onLoad(网页加载事件)、onUnload (关闭网页事件)
阅读全文
posted @ 2016-05-31 13:00 I'm new
阅读(82)
评论(0)
推荐(0)
编辑
异常捕获
摘要: 1、代码 try{ 执行代码块 }catch(err){ //异常信息 alert(err); //抛出异常 if(err=='004') throw("密码错误"); }
阅读全文
posted @ 2016-05-31 12:54 I'm new
阅读(119)
评论(0)
推荐(0)
编辑
JS函数
摘要: 1、申明函数 function demo(a,b){} 2、javaScript对大小写敏感,demoOver,首单词小写。 3、函数通常小写命名。 4、函数返回用return
阅读全文
posted @ 2016-05-31 12:41 I'm new
阅读(115)
评论(0)
推荐(0)
编辑
JS学习第一课
摘要: 1.js 按照编写顺序执行 2.输出使用document.write. 3.申明数组 var array = [1,2,3,5] ; var arrStr = ["sgsg","gset","etet"]; 或者 var myArray = new Array(); Array[1] = 10; 4
阅读全文
posted @ 2016-05-31 12:30 I'm new
阅读(94)
评论(0)
推荐(0)
编辑
2016年5月29日
立体透视 perspective transform-style 倾斜旋转
摘要: 1.perspective 是设置镜头距离,距离越远视图越小,视图越近,视图越大。就像相机焦距一样。其只对子元素产生效果. 2.transform-style: preserve-3d 设置3d效果,也是只对子元素产生效果。 3. 倾斜的视图,并且旋转,最开始我以为要对坐标系统进行旋转,其实不然。设
阅读全文
posted @ 2016-05-29 09:59 I'm new
阅读(330)
评论(0)
推荐(0)
编辑
2016年5月21日
CSS 3D旋转 hover 后设置transform 是相对于正常位置
摘要: 之前一直想不通,如下为什么旋转到上面后要再旋转-90deg。
阅读全文
posted @ 2016-05-21 19:25 I'm new
阅读(2840)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
下一页
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理