作者:江苏蓝凯-我家在装修_708 | 来源:互联网 | 2023-10-13 10:12
RightnowIopenaconnection(ifoneisnotalreadyopened)everytimeIthinkIwillneedone.The
Right now I open a connection (if one is not already opened) every time I think I will need one. The question is: when I do close it? At the end of each script that uses it? Is there a standard for this sort of thing?
现在我每次打开一个连接(如果还没有打开),我认为我需要一个连接。问题是:当我关闭它时?在每个使用它的脚本结束时?这种事情有标准吗?
2 个解决方案