这次内容是结合bootstrap把登陆注册做好,还有就是express的中间件等问题。看这篇博客之前建议先看我上篇写的那篇博客http://www.cnblogs.com/hubwiz/p/4118083.html第一步当然还是准备工作了,在bootstrap官网下载好需要的东西了,怎么用官网已经写...
分类:
数据库 时间:
2014-12-21 22:04:05
阅读次数:
327
1. 路由控制的工作原理//routes/index.js中的代码//访问主页时,调用ejs模板引擎,渲染index.ejs模板文件,生成静态页面,并显示在浏览器中。router.get('/', function(req, res) { //捕获访问主页的GET请求 res.render('...
分类:
Web程序 时间:
2014-12-21 21:57:25
阅读次数:
290
Regular Expression MatchingImplement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more o...
分类:
其他好文 时间:
2014-12-21 16:31:24
阅读次数:
206
引用:http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/20/3033131.html一:Linux文件类型与扩展名1.文件种类普通文件(regular file ): 显示属性为[ - ],例如 [-rwxrwxrwx ]。另外,依照文...
分类:
系统相关 时间:
2014-12-19 17:14:41
阅读次数:
209
转载:https://cnodejs.org/topic/53787247cbcc396349fe3f5anpm install express --savenpm install socket.io --savechat.jsvar express = require('express');var...
分类:
Web程序 时间:
2014-12-18 10:17:39
阅读次数:
263
如何使用自定义字体在讲icon font之前,首先先来看看普通自定义字体是如何在ios中使用的,两个原理是一样的。这里以KaushanScript-Regular为例:Step 1: 导入字体文件将字体文件拖入项目(ios支持的字体格式有:.ttf、.otf,其他格式不确定):然后再在项目的资源池中...
分类:
移动开发 时间:
2014-12-17 20:41:54
阅读次数:
210
水题和水题解,但是应该是这道题目前最好的题解。...
分类:
Web程序 时间:
2014-12-17 18:40:30
阅读次数:
160
What is the difference between these 2 bindings: and TemplateBinding - More limiting than using regular Binding More efficient than a Binding but ...
用到三个依赖包:express,superagent,cheerio superagent(http://visionmedia.github.io/superagent/?) 是个 http 方面的库,可以发起 get 或 post 请求。 cheerio(https://github.com/cheeriojs/cheerio?) 大家...
分类:
其他好文 时间:
2014-12-17 14:48:57
阅读次数:
185
本文简要描述一下在Qt应用中使用VLD来检测内存泄露。本次测试环境:QtCreator2.3 + Qt4.7.4-vs2008 + VS2008 Express.1、下载并安装:VLD-2.2:http://vld.codeplex.com/链接:http://vld.codeplex.com/re...
分类:
其他好文 时间:
2014-12-17 12:32:25
阅读次数:
176