📄 hash.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 net.conic.prototype.<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../net/conic/prototype/Object.html#extend(net.conic.prototype.JSClass)">extend</A>, <A HREF="../../../net/conic/prototype/Object.html#extend(net.conic.prototype.JSClass, net.conic.prototype.JSClass)">extend</A>, <A HREF="../../../net/conic/prototype/Object.html#inspect(net.conic.prototype.Object)">inspect</A>, <A HREF="../../../net/conic/prototype/Object.html#toString(int)">toString</A>, <A HREF="../../../net/conic/prototype/Object.html#valueOf()">valueOf</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 java.lang.Object 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= 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="Hash()"><!-- --></A><H3>
Hash</H3>
<PRE>
public <B>Hash</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="keys()"><!-- --></A><H3>
keys</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A> <B>keys</B>()</PRE>
<DL>
<DD>返回这个Hash内部所有key的集合
<P>
<DD><DL>
<DT><B>返回:</B><DD>Array <p><b>Example:</b></p><pre> var a = {first: 10,second: 20,third: 30}; var h = $H(a); alert(h.keys()); //显示:first,second,third</pre></DL>
</DD>
</DL>
<HR>
<A NAME="values()"><!-- --></A><H3>
values</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A> <B>values</B>()</PRE>
<DL>
<DD>返回这个Hash内部所有value的集合
<P>
<DD><DL>
<DT><B>返回:</B><DD>Array <p><b>Example:</b></p><pre> var a = {first: 10,second: 20,third: 30}; var h = $H(a); alert(h.values()); //显示:10,20,30</pre></DL>
</DD>
</DL>
<HR>
<A NAME="merge(net.conic.prototype.Object)"><!-- --></A><H3>
merge</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Hash.html" title="net.conic.prototype 中的类">Hash</A> <B>merge</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> hash)</PRE>
<DL>
<DD>并入Hash对象,此操作影响对象本身
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>hash</CODE> - 可Hash化的对象
<DT><B>返回:</B><DD>Hash <p><b>Example:</b></p><pre> //将{}对象转换成Hash对象 var a = {first: 10,second: 20,third: 30}; var h = $H(a); //将Array对象转换成Hash对象 var b = new Array(); b[0] = "000"; b["ikey"] = "iiiiii"; var hb = $H(b); //first=10&second=20&third=30&0=000&ikey=iiiiii alert(h.merge(hb).toQueryString()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="toQueryString()"><!-- --></A><H3>
toQueryString</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>toQueryString</B>()</PRE>
<DL>
<DD>将hash对象以querystring的形式返回
<P>
<DD><DL>
<DT><B>返回:</B><DD>querystring的形式,如property1=111&property2=2222&property3=3333等 <p><b>Example:</b></p><pre> //将{}对象转换成Hash对象 var a = {first: 10,second: 20,third: 30}; var h = $H(a); //first=10,second=20,third=30 alert(h.toQueryString());</pre></DL>
</DD>
</DL>
<HR>
<A NAME="inspect()"><!-- --></A><H3>
inspect</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>inspect</B>()</PRE>
<DL>
<DD>侦查方法
<P>
<DD><DL>
<DT><B>覆盖:</B><DD>类 <CODE><A HREF="../../../net/conic/prototype/Enumerable.html" title="net.conic.prototype 中的类">Enumerable</A></CODE> 中的 <CODE><A HREF="../../../net/conic/prototype/Enumerable.html#inspect()">inspect</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>返回:</B><DD>String '#<Enumerable:' + this.toArray().inspect() + '>';</DL>
</DD>
</DL>
<HR>
<A NAME="_each(net.conic.prototype.IteratorAdapter)"><!-- --></A><H3>
_each</H3>
<PRE>
protected void <B>_each</B>(<A HREF="../../../net/conic/prototype/IteratorAdapter.html" title="net.conic.prototype 中的类">IteratorAdapter</A> each)</PRE>
<DL>
<DD><B>从类 <CODE><A HREF="../../../net/conic/prototype/Enumerable.html#_each(net.conic.prototype.IteratorAdapter)">Enumerable</A></CODE> 复制的描述</B></DD>
<DD>执行each()方法时内部遍历操作都将执行此方法 ,此方法在prototype的源码中并未在Enumerable对象上做定义 ,在这里用java语言特性定义成protected abstract就是为了重点说明需要继承使用Enumerable特性的JS子类必须实现此方法!
<P>
<DD><DL>
<DT><B>指定者:</B><DD>类 <CODE><A HREF="../../../net/conic/prototype/Enumerable.html" title="net.conic.prototype 中的类">Enumerable</A></CODE> 中的 <CODE><A HREF="../../../net/conic/prototype/Enumerable.html#_each(net.conic.prototype.IteratorAdapter)">_each</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>参数:</B><DD><CODE>each</CODE> - function</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/Hash.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/Global.html" title="net.conic.prototype 中的类"><B>上一个类</B></A>
<A HREF="../../../net/conic/prototype/Iterator.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/Hash.html" target="_top"><B>框架</B></A>
<A HREF="Hash.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="#fields_inherited_from_class_net.conic.prototype.Object">字段</A> | <A HREF="#constructor_summary">构造函数</A> | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | <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 + -