摘要: 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 王小美丶 阅读(2699) 评论(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 王小美丶 阅读(548) 评论(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 王小美丶 阅读(357) 评论(0) 推荐(0)