-

xiyuetaASP().functionParam() 属性方法

获取匹配元素集中第一个元素的函数参数列表,或设置匹配元素的函数参数列表
快速上手

xiyuetaASP().functionParam()属性方法,四种调用方式:
1、xiyuetaASP("*").functionParam();
2、xiyuetaASP("*").functionParam("a,b,c");
3、xiyuetaASP("*").functionParam( [ ["aaa","t1"],["bbb","t2"] ] );
4、xiyuetaASP("*").functionParam( {aaa:"p1","bbb":"p2"} );

尝试一下>>

  • 代码
  • 效果
<script src="https://www.xiyueta.com/js/xiyueta.min.js"></script>
<script>var asp='<%\n\
dim a,b,c\n\
function mytest(byval aAa,byref bBb,ccC)\n\
    dim e,F,g\n\
    response.write(e & f & g)\n\
    dim h,i,j,k\n\
end function\n\
function debug(byval ddd,byref eee,ffff)\n\
    dim e,F,g\n\
    debug="this is " & ddd & eee & ffff\n\
end function\n\
%>'
 
xiyuetaASP.load(asp); 
$.log(xiyuetaASP("*").functionParam())  

$.log(xiyuetaASP("*").functionParam("a,b,c").print())   


xiyuetaASP.load(asp); 
$.log(xiyuetaASP("*").functionParam( [ ["aaa","t1"],["bbb","t2"] ]).print())

xiyuetaASP.load(asp); 
$.log(xiyuetaASP("*").functionParam( [ ["aaa","t1"],["bbb","t2"] ]).print())    

</script>
aaa,bbb,ccc
<%
dim a,b,c
function mytest(byval a,byref b,c)
    dim e,F,g
    response.write(e & f & g)
    dim h,i,j,k
end function
function debug(byval a,byref b,c)
    dim e,F,g
    debug="this is " & a & b & c
end function
%>
<%
dim a,b,c
function mytest(byval t1,byref t2,ccC)
    dim e,F,g
    response.write(e & f & g)
    dim h,i,j,k
end function
function debug(byval ddd,byref eee,ffff)
    dim e,F,g
    debug="this is " & ddd & eee & ffff
end function
%>
<%
dim a,b,c
function mytest(byval p1,byref p2,ccC)
    dim e,F,g
    response.write(e & f & g)
    dim h,i,j,k
end function
function debug(byval ddd,byref eee,ffff)
    dim e,F,g
    debug="this is " & ddd & eee & ffff
end function
%>