Can JavaScript connect with MySQL?

前端 未结 19 2106
小鲜肉
小鲜肉 2020-11-22 16:18

Can JavaScript connect with MySQL? If so, how?

19条回答
  •  情书的邮戳
    2020-11-22 17:01

    Simple answer is: no.

    JavaScript is a client-side language that runs in the browser (node.js notwithstanding) and MySQL is a server-side technology that runs on the server.

    That means you typically use a server-side language like ASP.NET or PHP to connect to the database.

提交回复
热议问题