Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用node.js我启动的服务器,我打开浏览器并在该页面中加载索引文件,那里有一个按钮。如果我单击该按钮,我需要连接到服务器并从 MySQL 获取数据并将其显示在某个部门,就像从 AJAX 到 PHP 的同步调用一样。
node.js
提前谢谢。
如果您已连接到数据库,那么只需使用 express 来获取您的数据,因为 Express 用于 Web 应用程序。