会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
hduhdc
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页
2016年3月15日
字符串总计
摘要: var str = '妙味课堂-WWW.miaov.com'; str.charAt(1); // '味'str.charCodeAt(1); // 21619String.fromCharCode(22937, 21619); // '妙味' str.indexOf('m', 4); // 9st
阅读全文
posted @ 2016-03-15 11:41 hduhdc
阅读(153)
评论(0)
推荐(0)
编辑
2016年3月14日
检测一段字符串是不是数字
摘要: // alert( str.length );// alert( str.charAt() ); // alert( str.charCodeAt() ); // 22937// alert( str.charCodeAt(1) ); // 21619 alert( str.charCodeAt()
阅读全文
posted @ 2016-03-14 21:26 hduhdc
阅读(146)
评论(0)
推荐(0)
编辑
math ceil以及math floor,math:round
摘要: ◎Math.ceil()执行向上舍入,即它总是将数值向上舍入为最接近的整数;◎Math.floor()执行向下舍入,即它总是将数值向下舍入为最接近的整数;◎Math.round()执行标准舍入,即它总是将数值四舍五入为最接近的整数(这也是我们在数学课上学到的舍入规则)。
阅读全文
posted @ 2016-03-14 20:33 hduhdc
阅读(147)
评论(0)
推荐(0)
编辑
dl以及dt,dd,以及table的tr,th,td最清楚分析
摘要: 1,定义:<dl> <dt> <dd>是一组合标签,使用了dt dd最外层就必须使用dl包裹,此组合标签我们也又叫表格标签,与table表格类似组合标签,故名我们也叫dl表格。<dl><dt></dt><dd></dd></dl>为常用标题+列表型标签。如没有对dl dt dd标签初始CSS样式,默
阅读全文
posted @ 2016-03-14 19:52 hduhdc
阅读(824)
评论(0)
推荐(0)
编辑
over-float清除浮动++隐藏溢出
摘要: overflow:hidden这个CSS样式是大家常用到的CSS样式,但是大多数人对这个样式的理解仅仅局限于隐藏溢出,而对于清除浮动这个含义不是很了解。一提到清除浮动,我们就会想到另外一个CSS样式:clear:both,我相信对于这个属性的理解大家都不成问题的。但是对于“浮动”这个词到底包含什么样
阅读全文
posted @ 2016-03-14 19:49 hduhdc
阅读(1227)
评论(0)
推荐(0)
编辑
自己看
摘要: setInterval; clearInterval; setTimeout; clearTimeout; getFullYears; getMonths;记得+1月是从0开始的 getDates; getDays;周几只是像是0,1,2,3,4,5,6, var myTime = ne
阅读全文
posted @ 2016-03-14 16:41 hduhdc
阅读(291)
评论(0)
推荐(0)
编辑
2016年3月13日
display:block;inline;inline-block大总结
摘要: 总体概念
阅读全文
posted @ 2016-03-13 11:16 hduhdc
阅读(201)
评论(0)
推荐(0)
编辑
img图片inline-block总结
摘要: <div style="font-size:0;"> <img data-src="http://image.zhangxinxu.com/image/study/s/s128/mm1.jpg" /> <img data-src="http://image.zhangxinxu.com/image/
阅读全文
posted @ 2016-03-13 11:11 hduhdc
阅读(809)
评论(0)
推荐(0)
编辑
2016年3月12日
定时器
摘要:
阅读全文
posted @ 2016-03-12 21:31 hduhdc
阅读(127)
评论(0)
推荐(0)
编辑
获取样式
摘要:
阅读全文
posted @ 2016-03-12 20:57 hduhdc
阅读(152)
评论(0)
推荐(0)
编辑
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页