立诚勿怠,格物致知
It's all about connecting the dots

2015年07月的文章

HTML块级元素和行内元素

每一个HTML元素的display属性都有一个默认的值。具体的默认值是什么,取决于元素的类型。大部分HTML元素display属性的默认值是block或inline。 块级元素 块级元素总是另起一个新行,并占满可用宽度(尽可能地向左右两个方...

HTML 阅读(4660)去评论赞(0)

JavaScript和Cookies

cookie简介 当网页服务器和你的浏览器“初次见面”时,网页服务器会提供一段独一无二的“信息”给你的服务器,二者此后再“见面”时可以彼此共享这些“信息”。远程服务器会保存这些“信息”,你的浏览器也会把这些“信息”以纯文本的形式保存在你的电...

JavaScript 阅读(4240)去评论赞(0)

JavaScript中的事件

当用户的某个行为影响到整个浏览器窗口时,窗口事件就发生了。最常见的窗口事件是通过简单地打开一个网页来加载窗口。关闭、移动窗口或者将窗口置于其他窗口的后面等事件也能触发相应的event hanlder。

JavaScript 阅读(4077)去评论赞(0)

正则表达式与JavaScript

A regular expression (often abbreviated as RegExp or called by its synonym grep) is a pattern, written using special symbols, which describes one or more text strings. You use regular expressions to match patterns of text, so that your script can easily recognize and manipulate text. Like an arithmetic expression, you create a regular expression by using operators, in this case operators that work on text, rather than numbers. There are many regular expression operators. By learning and using these operators, you'll be able to save yourself a huge amount of effort whenever you need to detect and manipulate text strings.

JavaScript 阅读(2208)去评论赞(0)

parentNode, childNodes, children and parentElement in JavaScript

Note that error may be returned if you place the above code snippet between the opening <head> tag and the closing <head>. This is because that all JavaScript-supported browsers will run these JavaScript code before the DOM is entirely interpreted. If you are using Firefox, the error returned is like: document.getElementById("child") has no properties, while the error returned by IE is like: Object Required.

JavaScript 阅读(1610)去评论赞(0)

登录

找回密码

注册