localhost访问错误端口。。。3000端监听访问了8000
访问/regist竟然没有停在断点上...其实根本没有进入/regist的路由。。有时候console都不出来的东西,说明根本没有走到那里。。不用矛盾!!!
登陆密码错误传错误传user参数
登陆router忘记加上else导致无限等待
再次访问了8000
应该改this.form.passwordConfirm.status而不是改this.passwordConfirm.status
要是先填确认密码再点开的话,就会显示密码错误,因为设置了离开密码区域才添加passwordConfirm属性
mongod 没加进命令行全局
‘{’ 不能接回车
.....没有登陆csdn,离开页面导致误删
is capfieldname Valid not a function....因为user中有_id 但 is_idValid not a function
then中的函数返回数据?还是要返回promise.resolve?首先可以直接返回数据。。将留到下一个promise调用.....另外,会返回promise.resolve(value)中的value
debug的时候断点不能断在callback上。。。
密码错误,findone中的then(没有传入user参数)
can't read createUser of undefined....syntax error -> jslint -> object中方法之间没有用逗号分隔
createUser not a function ...原因是打错,打成了creatUser
定义一个promise,只需选择如何调用resolve 或 reject
then()中的函数就不要传参了。。否则会直接执行 如果then中函数所需参数与之前的promise一样,可以直接闭包,根本不用再接收参数
export之后 外面的文件可以调用暴露的东西。。不是把东西送出去。而是别人可以进来
{ 不能留在最后一行?
{} 注意别漏了, 别写多了;
reg syntax error charset of undefined 粗暴的植入代码。。。运行发现,{}中有分号!!!!
什么acron.js 的reg syntax err, 忽然就没了
一堆登陆格式错误。。。。其实是条件判断的时候忘了!
can't read password of undefined 在createUser那没传进去.....并不是这样。。。是createUser一开始走一遍的时候马上就运行到那。。。直接读了undefined的user。。。所以有错误
npm install 要在有.package.json的文件夹里
then()中传了个promise会怎样。。返回个promise。。不太行
_id of undefined....not post api not check user? 真的是create user 传不进去 insert了个undefined?
原来是checkuser用了toArray就不能promise了
改回去usermanager的时候不记得exports了!!!!
访问/regist竟然没有停在断点上...其实根本没有进入/regist的路由。。有时候console都不出来的东西,说明根本没有走到那里。。不用矛盾!!!
登陆密码错误传错误传user参数
登陆router忘记加上else导致无限等待
再次访问了8000
应该改this.form.passwordConfirm.status而不是改this.passwordConfirm.status
要是先填确认密码再点开的话,就会显示密码错误,因为设置了离开密码区域才添加passwordConfirm属性
mongod 没加进命令行全局
‘{’ 不能接回车
.....没有登陆csdn,离开页面导致误删
is capfieldname Valid not a function....因为user中有_id 但 is_idValid not a function
then中的函数返回数据?还是要返回promise.resolve?首先可以直接返回数据。。将留到下一个promise调用.....另外,会返回promise.resolve(value)中的value
debug的时候断点不能断在callback上。。。
密码错误,findone中的then(没有传入user参数)
can't read createUser of undefined....syntax error -> jslint -> object中方法之间没有用逗号分隔
createUser not a function ...原因是打错,打成了creatUser
定义一个promise,只需选择如何调用resolve 或 reject
then()中的函数就不要传参了。。否则会直接执行 如果then中函数所需参数与之前的promise一样,可以直接闭包,根本不用再接收参数
export之后 外面的文件可以调用暴露的东西。。不是把东西送出去。而是别人可以进来
{ 不能留在最后一行?
{} 注意别漏了, 别写多了;
reg syntax error charset of undefined 粗暴的植入代码。。。运行发现,{}中有分号!!!!
什么acron.js 的reg syntax err, 忽然就没了
一堆登陆格式错误。。。。其实是条件判断的时候忘了!
can't read password of undefined 在createUser那没传进去.....并不是这样。。。是createUser一开始走一遍的时候马上就运行到那。。。直接读了undefined的user。。。所以有错误
npm install 要在有.package.json的文件夹里
then()中传了个promise会怎样。。返回个promise。。不太行
_id of undefined....not post api not check user? 真的是create user 传不进去 insert了个undefined?
原来是checkuser用了toArray就不能promise了
改回去usermanager的时候不记得exports了!!!!
数据库!!!又忘记开了
user require usermanger 不行。。。没有装lodash!!require lodash 出错了....其实是引用不了bcrypt-nodejs
发布包的时候package.json 的private设为true,然后npm adduser 登陆 npm whoami 看自己。。npm publish 记得文件不要重名
目标计算机拒绝我的原因是我打错网址了。。。mongo localhost:27017/signin 我打成了mongo localhost:27047/signin