- 博客(6)
- 收藏
- 关注
转载 document.documentElement和document.body的区别
网页中获取滚动条卷去部分的高度,可以通过 document.body.scrollTop 来获取,比如使div跟着滚动条滚动: window.onscroll = function () { var div = document.getElementById("div"); div.style.top = document.body.scrollTop + "px"
2014-12-18 15:21:41 339
转载 java枚举类型
用法一:常量 在JDK1.5 之前,我们定义常量都是: publicstaticfianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。
2014-11-05 15:46:28 340
转载 assert关键字
一、概述 在C和C++语言中都有assert关键,表示断言。 在Java中,同样也有assert关键字,表示断言,用法和含义都差不多。
2014-11-05 14:57:28 741
转载 XMLHttpRequest对象的status属性
Number Description 100 Continue 101 Switching protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Con
2014-10-22 19:37:10 571
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人