05 2015 档案

摘要:The float CSS property specifies that (1) an element should be taken from the normal flow and (2) placed along the left or right side of its container... 阅读全文
posted @ 2015-05-30 21:31 林大勇 阅读(228) 评论(0) 推荐(0) 编辑
摘要:PS: 无缝滚动专题来源于 [这里]1. 第一阶段运行效果在 [这里]这里我们需要注意的是 #div1{position:relative;} 和 #div1 ul{position:absolute; left:0; top:0;}#div1 Box: #div1 ul Box: ... 阅读全文
posted @ 2015-05-30 12:54 林大勇 阅读(277) 评论(0) 推荐(0) 编辑
摘要:这个bug是涉及到中英文文件名的问题(不涉及到路径名);Case 1: 中文文件名当打开alt+f2快捷方式打开含有中文名的html文件时,路径名直接变为localhost,所以找不到要打开的文件。Case2: 英文文件名运行没有问题~ 阅读全文
posted @ 2015-05-30 11:42 林大勇 阅读(1024) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 5 6 16 24 25 26 27 28 运行效果戳 [这里]在元素中,设置#div1元素的 {position:absolute; left:0; top:50px;}。在中,通过改变元素的left值来使元素运动起来。 这里需要... 阅读全文
posted @ 2015-05-30 11:19 林大勇 阅读(863) 评论(0) 推荐(0) 编辑
摘要:1. Offset dimensions incorporate all of the visual space that an element takes up on the screen. An element's visual space on the page is made up of... 阅读全文
posted @ 2015-05-29 20:55 林大勇 阅读(277) 评论(0) 推荐(0) 编辑
摘要:style加样式是加在行间,取样式也是在行间取; 我们来看下面这段代码: 1 2 3 4 5 13 19 20 21 22 23 24 这段代码定义了一个按钮和一个元素,并在13 19 20 21 22 23 24... 阅读全文
posted @ 2015-05-28 20:29 林大勇 阅读(595) 评论(0) 推荐(0) 编辑
摘要:Understanding a NodeList object and its relatives, NamedNodeMap and HTMLCollection, is critical to a good understanding of the DOM as a while. Each ... 阅读全文
posted @ 2015-05-22 10:04 林大勇 阅读(187) 评论(0) 推荐(0) 编辑
摘要:The childNodes property contains all of the immediate children of the element. There is a significant difference between browsers regarding the iden... 阅读全文
posted @ 2015-05-21 21:07 林大勇 阅读(217) 评论(0) 推荐(0) 编辑
摘要:上图来自于《JavaScript权威指南(第六版)》P375受到上图的启发,写了如下测试代码:1 var head = document.getElementsByTagName("head");2 console.log(Object.getPrototypeOf(Object.getProtot... 阅读全文
posted @ 2015-05-21 13:38 林大勇 阅读(874) 评论(0) 推荐(0) 编辑
摘要:首先贴上代码:1 console.log(Object.getPrototypeOf(document));2 console.log(Object.getPrototypeOf(Object.getPrototypeOf(document)));在FF上的运行结果如下所示:第一行代码返回的是一个H... 阅读全文
posted @ 2015-05-21 13:14 林大勇 阅读(4962) 评论(0) 推荐(1) 编辑
摘要:The Browser Object Model(BOM) is based on the window object, which represents the browser window and the viewable page area. The window object doubl... 阅读全文
posted @ 2015-05-20 11:31 林大勇 阅读(143) 评论(0) 推荐(0) 编辑
摘要:Intervals 1 var num = 0; 2 var max = 10; 3 4 function incrementNumber(){ 5 num++; 6 7 // if the max has not been reached, set another timeout ... 阅读全文
posted @ 2015-05-19 22:02 林大勇 阅读(144) 评论(0) 推荐(0) 编辑
摘要:IE, Safari, Opera, and Chrome all provide screenLeft and screenTop properties that indicate the window's location in relation to the left and top of... 阅读全文
posted @ 2015-05-19 17:10 林大勇 阅读(558) 评论(0) 推荐(0) 编辑
摘要:If a page contains frames, each frame has its own window object and is stored in the frames collection. Within the frames collection, the window obj... 阅读全文
posted @ 2015-05-19 16:56 林大勇 阅读(177) 评论(0) 推荐(0) 编辑
摘要:At the core of the BOM is the window object, which represents an instance of the browser. The window object serves a dual purpose in browsers, actin... 阅读全文
posted @ 2015-05-19 15:34 林大勇 阅读(151) 评论(0) 推荐(0) 编辑
摘要:Any variable defined inside a function is considered private since it is inaccessable outside that function. This includes function arguments, local... 阅读全文
posted @ 2015-05-19 11:23 林大勇 阅读(306) 评论(0) 推荐(0) 编辑
摘要:1 function MyObject(){ 2 // private variables and functions 3 var privateVariable = 10; 4 5 function privateFunction(){ 6 return false; ... 阅读全文
posted @ 2015-05-18 16:55 林大勇 阅读(165) 评论(0) 推荐(0) 编辑
摘要:The basic syntax of an anoymous function used as a block scope (often called a private scope) is as follows:(function(){ // block code here}) ();A va... 阅读全文
posted @ 2015-05-17 11:14 林大勇 阅读(172) 评论(0) 推荐(0) 编辑
摘要:我是这么理解的; (object.getName = object.getName),这条语句在执行结束后,返回的是右操作数object.getName; 但是关键是这个右操作数现在放在哪里 ? 我猜想因为这条语句是在全局中执行的,所以在全局中会有一个临时的变量,不妨命名为temp; 且temp =... 阅读全文
posted @ 2015-05-17 09:54 林大勇 阅读(177) 评论(0) 推荐(0) 编辑
摘要:然后第二段代码执行过程中,有1个globalvariabeobject,1个createFunctionactivationobject,10个anonymousfunction1activationobject,10个anonymousfunction2activationobject,并且这10... 阅读全文
posted @ 2015-05-17 09:51 林大勇 阅读(129) 评论(0) 推荐(0) 编辑
摘要:********************* from Professional JavaScript for Web DevelopmentExecution Context And Scope The execution context of a variable or function def... 阅读全文
posted @ 2015-05-13 10:59 林大勇 阅读(338) 评论(0) 推荐(0) 编辑
摘要:One of the key characteristics of function declarations is function declaration hoisting, whereby function declarations are read before the code exc... 阅读全文
posted @ 2015-05-12 21:56 林大勇 阅读(206) 评论(0) 推荐(0) 编辑
摘要:Although using the object constructor or an object literal are convenient ways to create single objects, there is an obvious downside: creating mult... 阅读全文
posted @ 2015-05-08 20:57 林大勇 阅读(239) 评论(0) 推荐(0) 编辑
摘要:Prototype Chaining Recall the relationship between consructors, prototypes and instances: each constructor has a prototype object that points back to... 阅读全文
posted @ 2015-05-08 17:39 林大勇 阅读(347) 评论(0) 推荐(0) 编辑
摘要:ECMAScript variables may contains two different types of data: primitive values and reference values. Primitive values are simple atomic pieces of d... 阅读全文
posted @ 2015-05-08 14:00 林大勇 阅读(155) 评论(0) 推荐(0) 编辑
摘要:构造函数模式用于定义实例属性,而原型模式用于定义方法和共享的属性。看下面的例子:function Person(name, age, job){ this.name = name; this.age = age; this.job = job; this.friends = ["Shel... 阅读全文
posted @ 2015-05-07 16:54 林大勇 阅读(176) 评论(0) 推荐(0) 编辑
摘要:1. 属性类型 对象的属性类型,描述了属性(property)的各种特征。 ECMAScript中有两种属性类型:数据属性和访问器属性。1.1 数据属性。 数据属性包含一个数据值的位置。在这个位置可以读取和写入值。数据属性有4个描述其行为的特性:[configurable]: 表示能否通过de... 阅读全文
posted @ 2015-05-06 09:57 林大勇 阅读(3674) 评论(0) 推荐(0) 编辑
摘要:每个函数都包含两个非继承而来的方法:apply()和call()。这两个方法的用途都是在特定的作用域中调用函数,特定的作用域为this参数指定的对象。 apply()和call()真正强大的地方是能够扩充函数赖以运行的作用域。下面来看一个例子:window.color = "red";var ... 阅读全文
posted @ 2015-05-05 16:31 林大勇 阅读(219) 评论(0) 推荐(0) 编辑
摘要:在函数内部,有两个特殊的对象:arguments和this。 argument对象有一个名叫callee的属性,该属性是一个指针,指向拥有这个arguments对象的函数。请看下面这个非常经典的阶乘函数。function factorial(num) { if (num <= 1) { ... 阅读全文
posted @ 2015-05-05 15:59 林大勇 阅读(275) 评论(0) 推荐(0) 编辑
摘要:1. 基本类型值在内存中占据固定大小的空间,因此被保存在栈空间中;2. 引用类型的值是对象,保存在堆空间中;3. 从一个变量向另一个变量复制基本类型的值,会创建这个值的一个副本;从一个变量向另一个变量复制引用类型的值,复制的其实是指针,因此两个变量最终都指向同一个对象;4. 确定一个值是哪种基本类型... 阅读全文
posted @ 2015-05-05 12:31 林大勇 阅读(120) 评论(0) 推荐(0) 编辑
摘要:2.1 npm是什么 npm(Node Package Manager)是Node.js的包管理器。它允许开发人员在Node.js应用程序中创建、共享并重用模块。2.3 安装模块 npm install [module_name]2.4 使用模块 var module = require{'m... 阅读全文
posted @ 2015-05-03 12:28 林大勇 阅读(233) 评论(2) 推荐(0) 编辑
摘要:1. 选中SYSU-SECURE网络连接.2. 点击进入Wi-Fi 安全性选项卡.3. 修改[认证(T)]项的值为[受保护的EAP(PEAP)].4. 连接成功. 阅读全文
posted @ 2015-05-02 21:55 林大勇 阅读(596) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示