weixin_33709590 2015-09-23 06:50 采纳率: 0%
浏览 24


What I was wondering is the following: When you call a script, lets call it makePage.php, clicking on a button and thus making an AJAX-request. Do I have to establish a new database connection? Even if I already established a connection to load in the page where the button is rendered on?

  • 写回答

2条回答 默认 最新

  • weixin_33725807 2015-09-23 06:53

    the page you call with AJAX (more or less) acts like a page visited by a browser. there is no hidden magic going on, it's an independent page you load.

    therefore you also have to care about database connections if you need them.




  • ¥15 三菱变频器模块怎么检测触发
  • ¥30 求一下解题思路,完全不懂。
  • ¥30 关于#硬件工程#的问题:求一下解题思路
  • ¥15 运筹学对偶单纯行法构造扩充问题
  • ¥20 XP系统的老电脑一开机就提示找不到rundll.exe,付费求解
  • ¥15 milvus查询出来的score怎么转换成0-1之间的相似性
  • ¥15 lvgl V9移植到linux开发板
  • ¥15 VB.net中在窗体中创建一个button控件来关闭窗体,但是提示错误,我该怎么办
  • ¥15 网上下载好的程序但是arduinoIDE编程报错,运行不了,哪里出错了,能具体给改一下吗
  • ¥15 Sharepoint JS开发 付费技术指导