摘要: Bower can manage components that contain HTML, CSS, JavaScript, fonts or even image files. Bower doesn’t concatenate or minify code or do anything el... 阅读全文
posted @ 2016-01-11 22:56 圣耀 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Node.js is a JavaScript runtime built onChrome's V8 JavaScript engine.Node.js uses an event-driven, non-blocking I/O model that makes it lightweight ... 阅读全文
posted @ 2016-01-11 22:24 圣耀 阅读(2464) 评论(0) 推荐(0) 编辑
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->1、jQuery.each(object, [callback]) 用于例遍任何对象。回调函数拥有两个参数:第一个为对象的成员或数组的索引,第二个为对应变量或内容。如果需要退出 ea 阅读全文
posted @ 2016-01-11 18:03 圣耀 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 函数可以实现类var aQuery = function(selector, context) { //构造函数}aQuery.prototype = { //原型 name:function(){}, age:function(){}}var a = new aQ... 阅读全文
posted @ 2016-01-11 15:59 圣耀 阅读(327) 评论(0) 推荐(0) 编辑
摘要: //工厂模式function createObject(name,age){ var obj = new Object(); obj.name = name; obj.age = age; obj.fun = function(){ return this.na... 阅读全文
posted @ 2016-01-11 15:02 圣耀 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: 一、ECMAScript中描述了原型链的概念。我们知道ECMAScript并不像C++,Java那样使用类,但是对象仍然可以通过多种方式创建,其中就有构造函数方式。每个构造函数都有一个原型对象,同时都有一个prototype属性, prototype属性指向构造函数的原型对象,它被用来实现基于原型的... 阅读全文
posted @ 2016-01-11 14:17 圣耀 阅读(224) 评论(0) 推荐(0) 编辑