| [心缘地方]同学录 |
| 首页 | 功能说明 | 站长通知 | 编码查看转换 | 代码下载 | 常见问题及讨论 | Python游戏编程讨论 | 《深入解析ASP核心技术》 | Python游戏编程教程 | AI图片生成 |
| 发表人 | 主题:为什么要加上isobject(conn) |
| 王新安 身份:user 发帖:60 登陆次数:23 |
1F
SUB showMsg(myMsg) response.write "<META http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">" response.write "<script language=''javascript''>" response.write "alert(''系统提示:"&myMsg&"'');history.go(-1);" response.write "</script>" If IsObject(conn) then conn.close set conn=nothing end if response.end END SUB 为什么要加上这句啊If IsObject(conn) then 直接写 conn.close set conn=nothing 不行吗? |
| 嘎嘎,是我 身份:admin 发帖:1456 登陆次数:3366 |
2F
如果conn没有关闭呢,这里close是没有问题的。 但是如果conn已经关闭了,再close会报错的。 所以...因为这个过程不知道什么时候调用的........ |
| 王新安 身份:user 发帖:60 登陆次数:23 |
3F
哦,我明白了! |
| CopyRight © 心缘地方 2005-2999. All Rights Reserved |