04 2020 档案

摘要:1.全局注册组件 Vue.component('button-cart',{ data () { return { count: 1 } }, template: '<button @click="count++">{{ count }}</button>' }) new Vue({el: '#ap 阅读全文
posted @ 2020-04-04 23:19 王小美丶 阅读(2659) 评论(0) 推荐(0) 编辑
摘要:1.进入环境 ./mongo 2.切换数据库 use admin 3.添加超级管理员账号密码 db.createUser( {user: "admin",pwd: "123456",roles: [root]}) // user 用户名 pwd 密码 roles 用来设置用户的权限是否支持读写等操作 阅读全文
posted @ 2020-04-04 15:27 王小美丶 阅读(535) 评论(0) 推荐(0) 编辑
摘要:mongoexport -d test -u admin -p admin -c collection --out test.json --jsonArray // 导出 mongoimport -d test -u admin -p admin -c collection --file test. 阅读全文
posted @ 2020-04-04 14:52 王小美丶 阅读(353) 评论(0) 推荐(0) 编辑
摘要:tokenCook: (name, value, time) => { // 设置cookie var exp = new Date() exp.setTime(exp.getTime() + time * 60 * 24 * 60 * 1000) // 这里的time就是天数 escape()编码 阅读全文
posted @ 2020-04-01 21:57 王小美丶 阅读(740) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示