This commit is contained in:
louiscklaw
2025-02-01 02:02:22 +08:00
commit cb49efbeca
213 changed files with 144159 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
var conn = new Mongo();
var db = conn.getDB("lab6-db");
var topic_name = ["www", "html", "css", "javascript", "nodejs", "jquery"];
var topic_status = ["no", "no", "no", "no", "no", "no"];
var topic_hour = [2, 4, 4, 6, 10, 6];
db.topicList.remove({});
for(let i = 0; i < topic_name.length; i++){
db.topicList.insert(
{
'name': topic_name[i],
'hour': topic_hour[i],
'status': topic_status[i]
}
)
}