2016-11-20 48 views

回答

0

嘗試這種情況:Using AngularJS with MongoDB

甲TL; DR:

1)創建一個DB參考var db = require("mongojs").connect(databaseUrl, collections);

2)從形式的數據並將其插入到分貝:db.COLLECTION_NAME.insert({field1: data_from_form1, field2: data_from_form2, field3: data_from_form3})

相關問題