blog開發踩坑記

Node.js 手冊查詢-3-Mongoose 方法    https://cnodejs.org/topic/548e54d157fd3ae46b233502 node

ele ui驗證問題cookie

 koa寫入cookiedom

        // 寫入cookie                
        ctx.cookies.set("userId", result._id, {
          domain: 'localhost',
          path: '/', //cookie寫入的路徑
          maxAge: 1000 * 60 * 60 * 1,
          expires: new Date('2018-10-06'),
          httpOnly: false,
          overwrite: false
        })
相關文章
相關標籤/搜索