我试图将一个基本的表单插入到我的数据库中,以了解node是如何工作的,但我总是收到一个有趣的小错误返回。error when connecting to db: { [Error: Connection lost: The server closed the connection.] fatal: true在mysql中,SELECT * FROM player也不返回任何内容,因此没有插入任何内容。} else {
我为一个简单的应用程序使用了Node.js Cloudant DB Web Starter,该应用程序接受用户的表单输入并将其插入到Cloudant DB中,但是我无法将控制权返回给表单或其他页面。当我在字段中输入信息并单击submit时,将从字段中捕获数据并将其插入到cloudant DB中,但随后浏览器只显示"OK“,不会返回到表单