上一页 1 ··· 4 5 6 7 8
摘要: function quickSort(arr,dir) { var dir=dir||'add'; if (arr.length pivot ? left.push(arr[i]): right.push(arr[i]); } } return quickSort(left).concat(... 阅读全文
posted @ 2017-01-07 17:36 webbky 阅读(186) 评论(0) 推荐(0) 编辑
摘要: var mysql = require('mysql'); var pool = mysql.createPool({ host: 'localhost', user: 'nodejs', password: 'nodejs', database: 'nodejs', port: 3306 }); var selectSQL ="show variabl... 阅读全文
posted @ 2017-01-07 16:29 webbky 阅读(408) 评论(0) 推荐(0) 编辑
摘要: var mysql = require('mysql'); var conn; function handleError () { conn = mysql.createConnection({ host: 'localhost', user: 'nodejs', password: 'nodejs', database: ... 阅读全文
posted @ 2017-01-07 16:27 webbky 阅读(1712) 评论(0) 推荐(0) 编辑
摘要: var express = require("express"); var bodyParser = require("body-parser"); var app = express(); // need it... app.use(bodyParser.urlencoded({ ... 阅读全文
posted @ 2017-01-06 14:55 webbky 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Express URL跳转(重定向)的实现 Express是一个基于Node.js实现的Web框架,其响应HTTP请求的response对象中有两个用于URL跳转方法res.location()和res.redirect(),使用它们可以实现URL的301或302重定向。 res.location( 阅读全文
posted @ 2017-01-06 10:04 webbky 阅读(3877) 评论(0) 推荐(0) 编辑
摘要: defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool false 此命令关闭显示隐藏文件命令运行之后需 阅读全文
posted @ 2016-12-22 12:40 webbky 阅读(264) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8