您现在的位置是:网站首页> 编程资料编程资料
Asp 返回引用类型函数代码_应用技巧_
2023-05-25
200人已围观
简介 Asp 返回引用类型函数代码_应用技巧_
复制代码 代码如下:
<%
set studentinstance = CreateStudent()
if not isnull(studentinstance) then
Response.write("StudentId:"&studentinstance.StudentId&"
")
Response.write("StudentName:"&studentinstance.StudentName&"
")
end if
Function CreateStudent()
set stud = new Statudent
stud.StudentId=123
stud.StudentName="Eric liu"
set CreateStudent=stud
End Function
Class Statudent
private id
private name
public property let StudentId(id_)
id=id_
end property
public property get StudentId
StudentId=id
end property
public property let StudentName(name_)
name=name_
end property
public property get StudentName
StudentName=name
end property
End Class
%>
相关内容
- asp 正则实现清除html文本格式的函数代码_应用技巧_
- asp+ajax仿google搜索提示效果代码_应用技巧_
- ASP 使用jqGrid实现读写删的代码(json)_应用技巧_
- Microsoft VBScript 运行时错误 错误 '800a0005' 无效的过程调用或参数: 'chr'_应用技巧_
- ASP XMLDom在服务器端操作XML文件的主要方法和实现_应用技巧_
- ASP 高亮显示不区分大小写的关键字_应用技巧_
- asp 性能测试报告 学习asp朋友需要了解的东西_应用技巧_
- asp Driver和Provider两种连接字符串连接Access时的区别_数据库相关_
- asp清理缓存的代码_应用技巧_
- Cookies 欺骗漏洞的防范方法(vbs+js 实现)_应用技巧_
