摘要: 1、http://ourjs.com/detail/53ad24edb984bb4659000013Mongoose学习参考文档2、http://blog.csdn.net/pro_tian/article/details/24781229mongoose 操作数据库13、http://mongoo... 阅读全文
posted @ 2015-04-23 18:06 醉酒笑红尘 阅读(165) 评论(0) 推荐(0)
摘要: 1、http://www.blogways.net/blog/2013/08/24/debug-in-express.html关于express用到的日志库debug的知识点滴2、https://cnodejs.org/topic/540833010256839f71e05fdcexpress4.8... 阅读全文
posted @ 2015-04-17 17:48 醉酒笑红尘 阅读(207) 评论(0) 推荐(0)
摘要: 一、HTML5在JS方面新增的东西document.querySelector(“css选择器”);document .querySelectorAll(“css选择器”);var aEle = document.querySelectorAll(“li input[type=text]”);var... 阅读全文
posted @ 2015-04-10 16:48 醉酒笑红尘 阅读(134) 评论(0) 推荐(0)
摘要: 一、构造函数:就是普通函数,因为用途工厂模式: 原料->加工产品->出厂工厂模式缺点:1. 没有new2. 每个对象拥有自己单独一个方法new到底干嘛?1. 自动帮你创建一个空白对象,并且赋值给this2. 自动帮你返回this* new后面跟的永远是 构造函数(函数)* 默认情况下,全局都属于wi... 阅读全文
posted @ 2015-04-10 15:52 醉酒笑红尘 阅读(147) 评论(0) 推荐(0)
摘要: 20141109一、move.js、自定义滚动条、通过事件委托拖拽多个div、手风琴二、2014-11-16/2014-11-23chrome碰撞、球、分块、分布运动、官网效果、苹果菜单三、2014-11-30 讲jquery2014-12-07 讲jquery插件四、ajax步骤 2014-12-... 阅读全文
posted @ 2015-04-07 18:01 醉酒笑红尘 阅读(117) 评论(0) 推荐(0)
摘要: 一、js数据类型: 字符串:string 数字:number 布尔:boolean undefined 复合类型:object functiontypeof 出现undefined的两种情况 1、定义了没有赋值 2、typeof a 根本就没有定义 3、函数没有返回值 4、访问一个不存在的属性 5、... 阅读全文
posted @ 2015-04-02 19:10 醉酒笑红尘 阅读(116) 评论(0) 推荐(0)
摘要: 1、var strJson = '{"a":12, "b":5}'; function parseJson(str) { return new Function("return "+ str )(); //为什么可以呢 /* new Function("x", "y", "return ... 阅读全文
posted @ 2015-04-01 17:59 醉酒笑红尘 阅读(81) 评论(0) 推荐(0)
摘要: 转载自:http://blog.snsgou.com/post-13.html在JS中将JSON的字符串解析成JSON数据格式,一般有两种方式:1.一种为使用eval()函数。2. 使用Function对象来进行返回解析。第一种解析方式:使用eval函数来解析,并且使用jQuery的each方法来遍... 阅读全文
posted @ 2015-04-01 15:54 醉酒笑红尘 阅读(260) 评论(0) 推荐(0)
摘要: 转载自:https://www.imququ.com/post/mobile_web_and_js_timer.html在之前博客中,我曾经写过「PC 上的 Firefox、Chrome 和 Safari 等浏览器,都会自动把未激活页面中的 JavaScript 定时器(setTimeout、set... 阅读全文
posted @ 2015-04-01 09:13 醉酒笑红尘 阅读(217) 评论(0) 推荐(0)
摘要: 1、keyCode shiftKey altKey ctrlKey keyCode: 左37上38右39下40回车13删除8 obj.cloneNode(true/false); obj.removeAttribute(属性名);2、 this错误用法:window 1)定时... 阅读全文
posted @ 2015-03-26 18:08 醉酒笑红尘 阅读(122) 评论(0) 推荐(0)