摘要:滚动demo: Document 1 2 3 4 日期选择器: ;(function ($) { 'use strict'; var wisdomRoot = '.wisdom-quan-date'; var Digit = function (element) { this.$element = $(element); this.d...
阅读全文
摘要:In this post, we’re going to be creating a sample comments system using Node, Express and Mongoose.Mongoose provides an object oriented interface for using MongoDB in Node.Everything in Mongoose starts with a Schema. Each schema maps to a MongoDB collection and defines the shape of the documents wit
阅读全文
摘要:来自《JavaScript 标准参考教程(alpha)》,by 阮一峰在Javascript的开发过程中,经常会遇到一些重复性的任务,比如合并文件、压缩代码、检查语法错误、将Sass代码转成CSS代码等等。通常,我们需要使用不同的工具,来完成不同的任务,既重复劳动又非常耗时。Grunt就是为了解决这个问题而发明的工具,可以帮助我们自动管理和运行各种任务。简单说,Grunt是一个自动任务运行器,会按照预先设定的顺序自动运行一系列的任务。这可以简化工作流程,减轻重复性工作带来的负担。Grunt基于Node.js,安装之前要先安装Node.js,然后运行下面的命令。sudo npm install
阅读全文