问题积累
北漂之行
听说写博文很锻炼人...
展开
-
Error: Cannot find module 'ejs'
问题: Error: Cannot find module 'ejs' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (m原创 2018-01-12 14:27:42 · 1464 阅读 · 0 评论 -
Nodejs ‘jade’换成 ‘html’
1、app.js中 加入 ejs = require('ejs'), app.engine('.html', ejs.__express); app.set('view engine', 'html'); 2、经路由,调用HTML 3、Html 4、效果原创 2018-01-12 14:34:17 · 1062 阅读 · 0 评论 -
postgress sql 字符串本身存在单引号 “’”
例如: 字符串:Marina of Allen's canalside 本身就存在单引号。 当以字符串为条件进行sql查询时,只需要在有单引号的地方再加上一个单引号 如: Marina of Allen''s canalside sql: select * from portinfo where port_name = 'Marina of Allen''s canals原创 2018-01-24 14:15:26 · 559 阅读 · 0 评论 -
解决HTML select的value值有空格问题
例如 参数 data = “absecon bar” 1、 测试 select取值结果 为absecon,结果不完整,空格之后的数据取不到 2、 测试 select取值结果为absecon bar,结果完整 OK原创 2018-01-25 13:14:55 · 4601 阅读 · 1 评论 -
mysql 服务zip 安装
1、zip 安装 mysql 服务时 不小心mysqld 装错位置了 所以: D:\mysql-5.6.24\bin>mysqld install The service already exists! The current server installed: "C:\Program Files\MySQL\MySQL Server 5.6\mysqld" MySQL原创 2018-01-29 11:53:56 · 395 阅读 · 0 评论