learn-webapp-guideline icon indicating copy to clipboard operation
learn-webapp-guideline copied to clipboard

Results 8 learn-webapp-guideline issues
Sort by recently updated
recently updated
newest added

document 2-2-project-description.md is empty.

比如运行第17个案例, 在登录注册时故意输错 点击登录浏览器会报以下错误: ``` Failed to load resource: the server responded with a status of 500 (Internal Server Error) ``` 而我们在处理api时,其实已经给出友好的错误的提示:比如用户不存在,密码有误等信息。而上面的错误不是我们想要的样子。 虽然使用了中间件errorHandel,但最终的错误处理是在app.js中处理的。 修改app.js 中错误处理的代码,比如新增自己对错误的处理,还是不行。甚至直接把render改为send都不奏效。 ``` // error handler app.use(function(err, req,...

1.mkdir/md可以用来直接创建文件夹,那么有没有哪个命令可以直接创建文件的。 比如,new 'hellojs.js'这样? 2.关于目录的命令不懂。根据上下文./指当前目录下,那么../是指上级目录吗?

第八课中 > express已经帮我们构建好了查找view的位置和解析view的引擎。当我们要返回页面时,只要告诉res.render函数返回的页面的名字即可。 ``` res.render('index', { title: 'Express' }); ``` 在官网学习到res.render()可以添加三个参数: 字符串、一个对象(local variable)、一个callback函数。 我的问题是,上面代码中的title,和下面代码中的name,这种local variable是在哪定义的呢? ``` // pass a local variable to the view res.render('user', { name: 'Tobi' }, function(err,...

Press rs for restarting the process. rs应该就是指restart的缩写,但是电脑上好像没这个键啊。right shift 也不是。 ps.要是auto-start运行npm报错,看一下 ``` "start": "node ./bin/www", "auto-start": ``` 第一行最后逗号有没有漏

### view/post.ejs ``` cnode·Supported by Vue _id : postId : {{ detailData.content }} {{ post_id }} var postId = '12345654321'; var app = new Vue({ el: "#app", data: { detailData...