如何使用Javascript将Html页面与数据库连接?我不想使用Php ...请帮助 [英] How Can I Connect Html Page With Database Using Javascript ?I Dont Want To Use Php ...Please Help

查看:369
本文介绍了如何使用Javascript将Html页面与数据库连接?我不想使用Php ...请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用javascript将html页面与数据库连接?我不想使用php ...请帮助

推荐答案

JavaScript仅用于客户端脚本,除非您不想使用它,否则您应该使用其他服务器端脚本语言来连接除php以外的数据库。



JavaScript将用户输入发送到服务器并请求文件处理和处理服务器中的数据库,然后服务器响应客户端浏览器。 />


大多数数据库都在服务器中,无论是在本地服务器还是远程服务器中,如果要将某些数据存储到Web浏览器,那么您应该看看HTML5功能(网络存储)等等。)它将帮助你,它基于JavaScript。
JavaScript is for client side scripting only and you should use some other server side scripting language to connect to database other than php unless you don't want to use it.

JavaScript sends the user input to the server and request a file to process and handle the databases in the server and then the server responds accordingly to the client browser.

Mostly Databases are in server whether it is in local or remote server and if you want to store some data to web browser then you should take a look at HTML5 features(web storage,etc..) that will help you and it is based on JavaScript.


这篇关于如何使用Javascript将Html页面与数据库连接?我不想使用Php ...请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆