為什么出現了db is not defind
??insert:?function(){
????db.collection('user').add({
????data:{
????????name:'jck',
????????age:20
??????},
??????success:?res=>{?//箭頭函數
????????console.log(res);
??????},
??????fail:err=>{
????????console.log(err);
??????}
????});
??},
2021-08-12
噢好了