摘要:
Chrome调试窗口有9个标签: 工作中常用的几个:Elements, Console, Sources, NetWork, Application Elements Elements 中,可以查看并且编辑页面元素,在左侧可以点选某一个元素,该元素会在页面上高亮,同时在右侧显示该元素的所有样式。 C 阅读全文
摘要:
在 AJAX 被发明之前,浏览器是怎么发起请求的? 为什么我们需要 AJAX? 上面列举的请求发起方式,要么会导致页面刷新,要么只能请求特定类型的文件(图片、CSS 或 JS)。 Gmail 这类复杂的网页应用非常需要一个「可以请求任意类型的数据,并获取数据内容」的方案。 当时微软极具创新意识地提供 阅读全文
摘要:
Event Listeners The addEventListener() method attaches an event handler to an element without overwriting existing event handlers.You can add many eve 阅读全文
摘要:
Handling Events There are several ways to handle events, including the following.Write the code directly into the HTML. <button onclick="alert('This i 阅读全文
摘要:
DOM Events HTML DOM allows JavaScript to react to HTML events. A JavaScript can be executed when an event occurs, such as when a user clicks on an HTM 阅读全文
摘要:
Fieldset and legend tags fieldset: grouping form fields. legend: specify a title for each fieldset. Form field markup and the label and input tags For 阅读全文
摘要:
The HTML elements below are grouped by function.1.Basic elementsBasic elements are the backbone of any HTML documents.<html>2.Document metadataMetadat 阅读全文
摘要:
行内元素: a, b, span, img, input, strong, select, label, em, button, textarea 块级元素: div, ul, li, dl, dt, dd, p, h1-h6, blockquote 空元素: br, meta, hr, link, 阅读全文
摘要:
null: 没有对象,转化为数字时为0。 undefined: 有对象,还没初始化,转化为数字是NaN。 阅读全文
摘要:
Examples: Displaying the constructor of an object The following example creates a prototype, Tree, and an object of that type. The example then displa 阅读全文