📄 function.html
字号:
protected <A HREF="../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A> <B>arguments</B></PRE>
<DL>
<DD>方法内部的取得此将调用传入的参数集合 ,只有方法内部才能调用到。是private的,在这里声明成protected是为了方便大家看文档是知道有这个对象
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>构造函数详细信息</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Function()"><!-- --></A><H3>
Function</H3>
<PRE>
public <B>Function</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>方法详细信息</B></FONT></TH>
</TR>
</TABLE>
<A NAME="valueOf()"><!-- --></A><H3>
valueOf</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Function.html" title="net.conic.prototype 中的类">Function</A> <B>valueOf</B>()</PRE>
<DL>
<DD><DL>
<DT><B>返回:</B><DD>对象本身内部的内容<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Object.html#valueOf()"><CODE>Object.valueOf()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="bind(net.conic.prototype.Object, net.conic.prototype.Object...)"><!-- --></A><H3>
bind</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Function.html" title="net.conic.prototype 中的类">Function</A> <B>bind</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> object,
<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>... arguments)</PRE>
<DL>
<DD>对apply的方法封装,使其可以用预置的参数arguments后期运行时绑定;
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>object</CODE> - 必需参数;要应用此这个方法的对象<DD><CODE>arguments</CODE> - 可选参数; 支持预置参数arguments,arguments连接在调用的方法参数的后面
<DT><B>返回:</B><DD>被替换了作用的对象了的方法对象<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Function.html#apply(net.conic.prototype.Object, net.conic.prototype.Array)"><CODE>apply(Object, Array)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="bindAsEventListener(net.conic.prototype.Object)"><!-- --></A><H3>
bindAsEventListener</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Function.html" title="net.conic.prototype 中的类">Function</A> <B>bindAsEventListener</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> object)</PRE>
<DL>
<DD>用call方法封装事件function的后期运行时事件绑定;
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>object</CODE> -
<DT><B>返回:</B><DD>被替换了作用的对象了的方法对象<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Function.html#call(net.conic.prototype.Object, net.conic.prototype.Object...)"><CODE>call(Object, Object[])</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="apply(net.conic.prototype.Object, net.conic.prototype.Array)"><!-- --></A><H3>
apply</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> <B>apply</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> object,
<A HREF="../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A> arguments)</PRE>
<DL>
<DD>应用某一对象的一个方法,用另一个对象替换当前对象。同call的差别就在于第二个参数arguments
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>object</CODE> - 可选项。将被用作当前对象的对象。<DD><CODE>arguments</CODE> - 将被传递给该函数的参数数组。
<DT><B>返回:</B><DD>返回执行此方法后的值 <p><b>Example:</b></p><pre>function MockObject(val){ this.value = val ? val : "default"; this.printValue = _printValue; return this;}function _printValue(val1,val2,val3){ var result = "<br><br> value: " + this.value + "<br> parameter1:" + val1 + "<br> parameter2: " + val2 + "<br> parameter3: " + val3; document.write(result); return result; }var mo1 = new MockObject();var mo2 = new MockObject("new");//mo1调用printValue方法打印自身内部的value//打印的结果// value: default// parameter1:undefined// parameter2: undefined// parameter3: undefined//mo1.printValue();//mo1的printValue方法应用到mo2对象上后//打印的结果// value: new// parameter1:undefined// parameter2: undefined// parameter3: undefined//var v = mo1.printValue.apply(mo2);alert(v);//mo1的printValue方法应用到mo2对象上并加入参数数组//打印的结果// value: new// parameter1:18// parameter2: 2// parameter3: 3var arry = new Array(18,2,3);mo1.printValue.apply(mo2,arry);// call方法的使用//打印的结果// value: new// parameter1:18,2,3// parameter2: undefined// parameter3: undefinedmo1.printValue.call(mo2,arry);// call方法的使用//打印的结果// value: new// parameter1:18// parameter2: 2// parameter3: 3mo1.printValue.call(mo2,18,2,3);</pre></DL>
</DD>
</DL>
<HR>
<A NAME="call(net.conic.prototype.Object, net.conic.prototype.Object...)"><!-- --></A><H3>
call</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> <B>call</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> object,
<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>... arguments)</PRE>
<DL>
<DD>应用某一对象的一个方法,用另一个对象替换当前对象。同apply的差别就在于第二个参数arguments
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>object</CODE> - 可选项。将被用作当前对象的对象。<DD><CODE>arguments</CODE> - 可选项。java1.5中的变长参数类型,将被传递给该函数的参数列表[arg0,arg1,arg2]。
<DT><B>返回:</B><DD>返回执行此方法后的值<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Function.html#apply(net.conic.prototype.Object, net.conic.prototype.Array)"><CODE>apply(Object, Array)</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>类</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Function.html"><FONT CLASS="NavBarFont1"><B>使用</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>已过时</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../net/conic/prototype/Event.html" title="net.conic.prototype 中的类"><B>上一个类</B></A>
<A HREF="../../../net/conic/prototype/Global.html" title="net.conic.prototype 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?net/conic/prototype/Function.html" target="_top"><B>框架</B></A>
<A HREF="Function.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
摘要: 嵌套 | <A HREF="#field_summary">字段</A> | <A HREF="#constructor_summary">构造函数</A> | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: <A HREF="#field_detail">字段</A> | <A HREF="#constructor_detail">构造函数</A> | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -