Node.js 中的数据库增删改查
一、连接数据库
<code class="ts">const MongoClient = require(\'<a style="color:#f60; text-decoration:underline;" href="https://www.php.cn/zt/16002.html" target="_blank">mongodb</a>\').MongoClient; const url = \'mongodb://localhost:27017\'; const client = new MongoClient(url);