获取匹配元素集中第一个元素的函数变量列表,或设置匹配元素的函数变量列表
xiyuetaASP().functionVar()属性方法,四种调用方式:
1、xiyuetaASP("*").functionVar();
2、xiyuetaASP("*").functionVar("a,b,c");
3、xiyuetaASP("*").functionVar( [ ["aaa","t1"],["bbb","t2"] ] );
4、xiyuetaASP("*").functionVar( [ {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("*").functionVar()) $.log(xiyuetaASP("*").functionVar("a,b,c").print()) xiyuetaASP.load(asp); $.log(xiyuetaASP("*").functionVar( [ ["f","t1"],["k","t2"] ]).print()) xiyuetaASP.load(asp); $.log(xiyuetaASP("*").functionVar( { f:"oooooo","k":"llllllllll" } ).print())
</script>
e,f,g,h,i,j,k
<%
dim a,b,c
function mytest(byval aAa,byref bBb,ccC)
dim a,b,c
response.write(a & b & c)
dim h,i,j,k
end function
function debug(byval ddd,byref eee,ffff)
dim a,b,c
debug="this is " & ddd & eee & ffff
end function
%>
<%
dim a,b,c
function mytest(byval aAa,byref bBb,ccC)
dim e,t1,g
response.write(e & t1 & g)
dim h,i,j,t2
end function
function debug(byval ddd,byref eee,ffff)
dim e,t1,g
debug="this is " & ddd & eee & ffff
end function
%>
<%
dim a,b,c
function mytest(byval aAa,byref bBb,ccC)
dim e,oooooo,g
response.write(e & oooooo & g)
dim h,i,j,llllllllll
end function
function debug(byval ddd,byref eee,ffff)
dim e,oooooo,g
debug="this is " & ddd & eee & ffff
end function
%>