摘要: 把let声明在全局,全局都能访问 let a = 3 if (true) { console.log(a) } console.log(a) 变量b用let声明在块内,外部访问不到b,报错 let a = 3 if (true) { let b =5 console.log(b) } console 阅读全文
posted @ 2019-08-16 14:58 skyboyyy 阅读(193) 评论(0) 推荐(0)
摘要: express框架: 1.依赖中间件 2.接受请求 get / post / use get('/地址' , function(req , resp ){}) post和use 同理 3.非破坏式 4.express-static用法(访问静态资源) const server= require('e 阅读全文
posted @ 2019-06-08 19:18 skyboyyy 阅读(116) 评论(0) 推荐(0)
摘要: 最简单的原因可能是数据库外键字段选择了不能为空, 改为允许为空就行了。 阅读全文
posted @ 2018-11-01 14:12 skyboyyy 阅读(10388) 评论(0) 推荐(0)