10 2015 档案
摘要:toString:可以把数值或布尔值转变为字符串parseFloat,parseInt:可以把字符串变为数值双重非可以把字符串或数值转变为布尔值
阅读全文
摘要:一个空函数当你仅仅想要传递一个空函数的时候,就用他吧。这对一些插件作者很有用,当插件提供了一个可选的回调函数接口,那么如果调用的时候没有传递这个回调函数,就用jQuery.noop来代替执行。
阅读全文
摘要:http://flandycheng.blog.51cto.com/855176/982719http://my.oschina.net/Jsiwa/blog/272761
阅读全文
摘要:http://www.barretlee.com/blog/2015/08/12/cb-data-uri/
阅读全文
摘要:概述当事件穿过 DOM 时,识别事件的当前目标对象(Identifies the current target for the event, as the event traverses the DOM.)。 该属性总是指向被绑定事件处理器的元素。而event.target与之相反,指向触发事件的元...
阅读全文
摘要:MongoDB简介MongoDB 是一个基于分布式文件存储的 NoSQL(非关系型数据库)的一种,由 C++ 语言编写,旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。MongoDB 支持的数据结构非常松散,是类似 json 的 bjson 格式,因此可以存储比较复杂的数据类型。MongoD...
阅读全文
摘要:http://fxck.it/post/72326363595大部分脚本语言里字面量都要快一些,因为解析[]比解析new Array()步骤少的多关于Object可以用constructor注入的问题,要用Object.create(null)来创建纯map。所大部分脚本语言里字面量都要快一些,因为...
阅读全文
摘要:http://bubkoo.com/2014/02/18/bulletproof-javascript-benchmarks/
阅读全文
摘要:更新: Session原理、安全以及最基本的Express和Redis实现 https://github.com/alsotang/node-lessons/tree/master/lesson8 闭包 博客: https://github.com/alsotang/node-lessons/tre
阅读全文
摘要:http://www.w3ctech.com/topic/1442
阅读全文
摘要:https://nodejs.org/docs/latest/api/process.html#process_process_argvhttps://github.com/alsotang/node-lessons/tree/master/lesson6http://blog.csdn.net/c...
阅读全文
摘要:https://github.com/alsotang/node-lessons/tree/master/lesson5https://github.com/nswbmw/N-blog/wiki/%E7%95%AA%E5%A4%96%E7%AF%87%E4%B9%8B%E2%80%94%E2%80%...
阅读全文
摘要:var express = require('express');var superagent = require('superagent');var cheerio = require('cheerio');var eventproxy = require('eventproxy');var ur...
阅读全文
摘要:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/forEachhttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/...
阅读全文
摘要:var express = require('express');var superagent = require('superagent');var cheerio = require('cheerio');var app = express();app.get('/', function(req...
阅读全文
摘要:var express = require('express');var utility = require('utility');var app = express();app.get('/', function(req, res){ // 从 req.query 中取出我们的 q 参数。 ...
阅读全文

浙公网安备 33010602011771号