⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 array.html

📁 ajax开发框架prototype中文说明帮助
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#concat(net.conic.prototype.Array)">concat</A></B>(<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A>&lt;<A HREF="../../../../net/conic/prototype/Array.html" title="Array 中的类型参数">V</A>&gt;&nbsp;array2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个新数组,这个新数组是由两个数组组合而成的。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#entries()">entries</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;等同于toArray()方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../../net/conic/prototype/String.html#evalScripts()">evalScripts</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将字符串中所有的以&lt;script />包含的块的代码做执行,并将每次执行的结果返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../../net/conic/prototype/String.html#extractScripts()">extractScripts</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将字符串中所有的以&lt;script />包含的块的内容以数组的形式返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#findAll(net.conic.prototype.Iterator)">findAll</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行iterator迭代,并将迭代结果返回为true的元素的值集合返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A>&lt;<A HREF="../../../../net/conic/prototype/Array.html" title="Array 中的类型参数">V</A>&gt;</CODE></FONT></TD>
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#flatten()">flatten</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将一个多维的数组并成一维数组;prototype增强方法,源码实现比较灵活</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#from(net.conic.prototype.Object)">from</A></B>(<A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>&nbsp;iterable)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将任何的可枚举(iterable)类型对象转换成Array对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#grep(net.conic.prototype.Pattern, net.conic.prototype.Iterator)">grep</A></B>(<A HREF="../../../../net/conic/prototype/Pattern.html" title="net.conic.prototype 中的类">Pattern</A>&nbsp;pattern,
     <A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行iterator迭代,将对每个元素的做toString()操作后执行字符串匹配工作。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#invoke(net.conic.prototype.String, net.conic.prototype.Object...)">invoke</A></B>(<A HREF="../../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;method,
       <A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>...&nbsp;arguments)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对象内部每一元素取得自身的method内容的function,并将自身的值与arguments传入执行.将执行结果的集合返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Hash.</B><B><A HREF="../../../../net/conic/prototype/Hash.html#keys()">keys</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回这个Hash内部所有key的集合</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#map(net.conic.prototype.Iterator)">map</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;等同collect()方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../../net/conic/prototype/String.html#match(net.conic.prototype.Object)">match</A></B>(<A HREF="../../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>&nbsp;regExp)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用正则表达式对象对字符串进行查找,并将结果作为数组返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../../net/conic/prototype/String.html#parseQuery()">parseQuery</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prototype增强方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#partition(net.conic.prototype.Iterator)">partition</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据判断每次迭代执行的结果ture或false,分别将其元素放入到返回Array中的第一个元素或第二个元素中</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#pluck(net.conic.prototype.String)">pluck</A></B>(<A HREF="../../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;property)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;迭代每个元素的property属性(以value[property]方式取得),以数组方式返回</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#reject(net.conic.prototype.Iterator)">reject</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将每次迭代执行的结果false的元素放入到返回Array中返回,相当于取partition的返回的falses成员</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A>&lt;<A HREF="../../../../net/conic/prototype/Array.html" title="Array 中的类型参数">V</A>&gt;</CODE></FONT></TD>
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#reverse()">reverse</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回元素顺序被反转的 Array 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#reverse(boolean)">reverse</A></B>(boolean&nbsp;flag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回元素顺序被反转的 Array 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#select(net.conic.prototype.Iterator)">select</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;等同于findAll()方法</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A>&lt;<A HREF="../../../../net/conic/prototype/Array.html" title="Array 中的类型参数">V</A>&gt;</CODE></FONT></TD>
<TD><CODE><B>Array.</B><B><A HREF="../../../../net/conic/prototype/Array.html#sort(net.conic.prototype.Comparator)">sort</A></B>(<A HREF="../../../../net/conic/prototype/Comparator.html" title="net.conic.prototype 中的类">Comparator</A>&nbsp;comparator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个元素已经进行了排序的 Array 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>Enumerable.</B><B><A HREF="../../../../net/conic/prototype/Enumerable.html#sortBy(net.conic.prototype.Iterator)">sortBy</A></B>(<A HREF="../../../../net/conic/prototype/Iterator.html" title="net.conic.prototype 中的类">Iterator</A>&nbsp;iterator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据迭代执行结果的大小顺序,返回元素集合,降序返回。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../../net/conic/prototype/String.html#split(net.conic.prototype.String)">split</A></B>(<A HREF="../../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;splitText)</CODE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -