源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Asp 返回引用类型函数代码

  • 时间:2020-05-27 23:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Asp 返回引用类型函数代码
[u]复制代码[/u] 代码如下:
<% set studentinstance = CreateStudent() if not isnull(studentinstance) then Response.write("StudentId:"&studentinstance.StudentId&"<Br/>") Response.write("StudentName:"&studentinstance.StudentName&"<Br/>") 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 %>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部