04 2016 档案

摘要:Chrome调试窗口有9个标签: 工作中常用的几个:Elements, Console, Sources, NetWork, Application Elements Elements 中,可以查看并且编辑页面元素,在左侧可以点选某一个元素,该元素会在页面上高亮,同时在右侧显示该元素的所有样式。 C 阅读全文
posted @ 2016-04-27 20:09 kakaguo 阅读(4680) 评论(0) 推荐(0)
摘要:在 AJAX 被发明之前,浏览器是怎么发起请求的? 为什么我们需要 AJAX? 上面列举的请求发起方式,要么会导致页面刷新,要么只能请求特定类型的文件(图片、CSS 或 JS)。 Gmail 这类复杂的网页应用非常需要一个「可以请求任意类型的数据,并获取数据内容」的方案。 当时微软极具创新意识地提供 阅读全文
posted @ 2016-04-26 23:06 kakaguo 阅读(517) 评论(0) 推荐(0)
摘要:Event Listeners The addEventListener() method attaches an event handler to an element without overwriting existing event handlers.You can add many eve 阅读全文
posted @ 2016-04-18 11:30 kakaguo 阅读(589) 评论(0) 推荐(0)
摘要:Handling Events There are several ways to handle events, including the following.Write the code directly into the HTML. <button onclick="alert('This i 阅读全文
posted @ 2016-04-18 11:28 kakaguo 阅读(129) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-04-18 11:26 kakaguo 阅读(185) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-04-15 22:45 kakaguo 阅读(194) 评论(0) 推荐(0)
摘要:The HTML elements below are grouped by function.1.Basic elementsBasic elements are the backbone of any HTML documents.<html>2.Document metadataMetadat 阅读全文
posted @ 2016-04-14 14:28 kakaguo 阅读(539) 评论(0) 推荐(0)
摘要:行内元素: 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, 阅读全文
posted @ 2016-04-13 22:43 kakaguo 阅读(760) 评论(0) 推荐(0)
摘要:null: 没有对象,转化为数字时为0。 undefined: 有对象,还没初始化,转化为数字是NaN。 阅读全文
posted @ 2016-04-13 22:40 kakaguo 阅读(165) 评论(0) 推荐(0)
摘要:Examples: Displaying the constructor of an object The following example creates a prototype, Tree, and an object of that type. The example then displa 阅读全文
posted @ 2016-04-12 13:58 kakaguo 阅读(146) 评论(0) 推荐(0)
摘要:What is the DOM? When a web page is loaded, the browser creates a Document Object Model(DOM) of the page.The DOM defines the logical structure of the 阅读全文
posted @ 2016-04-11 14:19 kakaguo 阅读(311) 评论(0) 推荐(0)
摘要:Golden rule Every line of code should appear to be written by a single person, no matter the number of contributors. 1.Syntax Use soft tabs with two s 阅读全文
posted @ 2016-04-10 11:38 kakaguo 阅读(255) 评论(0) 推荐(0)
摘要:Golden rule Every line of code should appear to be written by a single person, no matter the number of contributors. 1.Syntax Use soft tabs with two s 阅读全文
posted @ 2016-04-10 11:05 kakaguo 阅读(243) 评论(0) 推荐(0)
摘要:创建object时,可以用object literal方法来创建一个对象,也可以通过constructor(关键词function)来创建object type,再通过关键词new,结合不同的arguments来创建很多个对象。 String:一般通过literal方法来创建。常用属性:length 阅读全文
posted @ 2016-04-09 22:59 kakaguo 阅读(449) 评论(1) 推荐(0)
摘要:var是用来存放data value的(container)。data type包括number, string, array, math, date等(其中string, array, math, date都是object)。 function是a block of code,优势:通过不同的ar 阅读全文
posted @ 2016-04-09 22:41 kakaguo 阅读(279) 评论(0) 推荐(0)
摘要:文档流的概念:CSS元素要么in normal flow, 要么out of normal flow。Normal flow就是盒子flow down the page,默认的static position; out of normal flow包括position absolute/positio 阅读全文
posted @ 2016-04-08 22:30 kakaguo 阅读(830) 评论(0) 推荐(0)
摘要:设置float之后,比如在一个容器里,一个图片后面有一段文字,图片设置了float。会有3个变化: 1、被float的元素会脱离标准文档流。(如果float的是inline element,会变成float-box)。shift to the left or right,到包含他的盒子边缘或者其他f 阅读全文
posted @ 2016-04-08 22:27 kakaguo 阅读(419) 评论(0) 推荐(1)