摘要: 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 阅读(190) 评论(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 阅读(1724) 评论(0) 推荐(0) 编辑