1. document.referrer可以获得上一页的地址,使用document.anchors获得页面上面所有的链接元素,而不必使用 document.getElementsByTagName('A');,同样道理还有document.forms , document.images。2. fun...
分类:
编程语言 时间:
2015-07-22 18:41:52
阅读次数:
227
javascript-DOM学习 DOM document(html) object modle document对象(DOM核心对象) dom能用来干什么? 对html元素的样式(颜色、大小、位置等等)、内容、属 性来进行动态的改变和操作。 document对象 ? 一、属性 ? ...
分类:
编程语言 时间:
2015-07-22 18:22:45
阅读次数:
126
网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body.clientHeight 网页可见区域宽:document.body.offsetWidth (包括边线的宽) 网页可见区域高:document.body.offsetHeight (包括...
分类:
移动开发 时间:
2015-07-22 17:52:10
阅读次数:
112
test
第一种
$("#test").click(function(event)
{
/* Act on the event */});
第二种
document.getElementById('#foo').addEventListener('click', function() {
/* Act on the event */}, false);
第三种
html
...
分类:
Web程序 时间:
2015-07-22 14:50:02
阅读次数:
165
第一次尝试使用canvas来做一个有关验证码的效果
接下来直接上代码,代码里有注释便于大家理解:
@charset "utf-8";
/* CSS Document */
body{background:url(images/img10.jpg) no-repeat fixed;}
body,form,ul,ol,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd,tab...
分类:
其他好文 时间:
2015-07-22 13:24:15
阅读次数:
120
function mouseDown()
{
document.getElementById("p1").style.color="red";
}
function mouseUp()
{
document.getElementById("p1").style.color="green";
}
请点击文本!mouseDown() 函数当鼠标按钮在段落上被按下时触发。此函数把文本颜色设置...
分类:
Web程序 时间:
2015-07-22 13:15:14
阅读次数:
104
例子解释:这段代码创建新的 元素:var para=document.createElement("p");如需向 元素添加文本,您必须首先创建文本节点。这段代码创建了一个文本节点:var node=document.createTextNode("这是新段落。");然后您必须向 元素追加这个...
分类:
编程语言 时间:
2015-07-22 12:58:57
阅读次数:
693
生产环境使用了mongo数据库。对mongo数据库垂涎已久,其高性能/开源/无模式/文档型数据库/...多么诱人的特性,之前也偶尔折腾着玩过,不过都没做笔记,趁此机会重新捡起来。关于mongoMongoDB is an open-source document database that provi...
分类:
数据库 时间:
2015-07-22 12:48:17
阅读次数:
270
偶尔看到了document.referrer,之前一直有点疑惑与window.opener 和 window.parent之间的区别首先查了一下w3cSCHOOL,上面的解释:referrer 属性可返回载入当前文档的文档的 URL。但是解释中没有写怎么载入才能用referrer,翻看了几篇文章,终...
jQuery(document).ready(function(){jQuery("div.groupheader").each(function(){$(this).text($(this).text().substr(3));});});
分类:
Web程序 时间:
2015-07-22 12:31:39
阅读次数:
112