ASP中如何调用自定义函数

请问我有如下的一个ASP自定义函数
function xianshi(x,y)
response.write x&“<br>”
response.write y+1
end function

函数调用
a="asbcd"
b=3
xianshi(a,b)

我想输出以下结果
asbcd
4
这样写函数和调用函数对吗?
function xianshi(x,y)  
xianshi= x&“<br>”
xianshi=xianshi& (y+1 )
end function
调用方式 <%=xianshi(a,b)%>
另外一种
Sub xianshi(x,y)
response.write x&“<br>”
response.write y+1
End Sub 调用方式
Call xianshi(a,b)

两种根据情况而定
原文地址:https://www.cnblogs.com/LiaoHao/p/3525594.html