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

📄 hash.html

📁 ajax开发框架prototype中文说明帮助
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_06) on Sun Feb 19 02:37:47 CST 2006 -->
<TITLE>
Hash
</TITLE>

<META NAME="keywords" CONTENT="net.conic.prototype.Hash class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="Hash";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Hash.html"><FONT CLASS="NavBarFont1"><B>使用</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>已过时</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../net/conic/prototype/Global.html" title="net.conic.prototype 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;<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>  &nbsp;
&nbsp;<A HREF="Hash.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<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">
  摘要:&nbsp;嵌套&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_net.conic.prototype.Object">字段</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">构造函数</A>&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息:&nbsp;字段&nbsp;|&nbsp;<A HREF="#constructor_detail">构造函数</A>&nbsp;|&nbsp;<A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
net.conic.prototype</FONT>
<BR>
类 Hash</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="继承者 "><A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">net.conic.prototype.Object</A>
      <IMG SRC="../../../resources/inherit.gif" ALT="继承者 "><A HREF="../../../net/conic/prototype/Enumerable.html" title="net.conic.prototype 中的类">net.conic.prototype.Enumerable</A>
          <IMG SRC="../../../resources/inherit.gif" ALT="继承者 "><B>net.conic.prototype.Hash</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>Hash</B><DT>extends <A HREF="../../../net/conic/prototype/Enumerable.html" title="net.conic.prototype 中的类">Enumerable</A></DL>
</PRE>

<P>
Hash类,Prototype框架增强类型,内部类,主要提供给全局方法$H生成. <p><b style="color:red">注意在JS中,不能使用new Hash()初始此类型,必须使用$H获得此类型的对象.</b>  <p><b>说明</b> <p><b>Example:</b></p><pre>                //将{}对象转换成Hash对象                var a = {first: 10,second: 20,third: 30};                var h = $H(a);                alert(h.toQueryString()); //显示: first=10&second=20&third=30                //将Array对象转换成Hash对象                var b = new Array();                b[0] = "000";                b["ikey"] = "iiiiii";                var hb = $H(b);                alert(hb.toQueryString());      //显示: 0=000&ikey=iiiiii                ...</pre>
<P>

<P>
<DL>
<DT><B>版本:</B></DT>
  <DD>Prototype Document Version 0.1</DD>
<DT><B>作者:</B></DT>
  <DD>Frank.Chen (Email:jtjdskq@126.com)  <br>http://blog.csdn.net/jkjdskq</DD>
</DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>字段摘要</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_net.conic.prototype.Object"><!-- --></A>
<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#constructor">constructor</A>, <A HREF="../../../net/conic/prototype/Object.html#prototype">prototype</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>构造函数摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../net/conic/prototype/Hash.html#Hash()">Hash</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../net/conic/prototype/Hash.html#_each(net.conic.prototype.IteratorAdapter)">_each</A></B>(<A HREF="../../../net/conic/prototype/IteratorAdapter.html" title="net.conic.prototype 中的类">IteratorAdapter</A>&nbsp;each)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行each()方法时内部遍历操作都将执行此方法 ,此方法在prototype的源码中并未在Enumerable对象上做定义 ,在这里用java语言特性定义成protected abstract就是为了重点说明需要继承使用Enumerable特性的JS子类必须实现此方法!</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../net/conic/prototype/Hash.html#inspect()">inspect</A></B>()</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><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/Hash.html" title="net.conic.prototype 中的类">Hash</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../net/conic/prototype/Hash.html#merge(net.conic.prototype.Object)">merge</A></B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>&nbsp;hash)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;并入Hash对象,此操作影响对象本身</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../net/conic/prototype/Hash.html#toQueryString()">toQueryString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将hash对象以querystring的形式返回</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><A HREF="../../../net/conic/prototype/Hash.html#values()">values</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回这个Hash内部所有value的集合</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_net.conic.prototype.Enumerable"><!-- --></A>
<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/Enumerable.html" title="net.conic.prototype 中的类">Enumerable</A> 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../net/conic/prototype/Enumerable.html#all(net.conic.prototype.Iterator)">all</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#any(net.conic.prototype.Iterator)">any</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#collect(net.conic.prototype.Iterator)">collect</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#detect(net.conic.prototype.Iterator)">detect</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#each(net.conic.prototype.Iterator)">each</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#entries()">entries</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#find(net.conic.prototype.Iterator)">find</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#findAll(net.conic.prototype.Iterator)">findAll</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#grep(net.conic.prototype.Pattern, net.conic.prototype.Iterator)">grep</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#include(net.conic.prototype.Object)">include</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#inject(net.conic.prototype.Object, net.conic.prototype.Iterator)">inject</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#invoke(net.conic.prototype.String, net.conic.prototype.Object...)">invoke</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#map(net.conic.prototype.Iterator)">map</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#max(net.conic.prototype.Iterator)">max</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#member(net.conic.prototype.Object)">member</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#min(net.conic.prototype.Iterator)">min</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#partition(net.conic.prototype.Iterator)">partition</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#pluck(net.conic.prototype.String)">pluck</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#reject(net.conic.prototype.Iterator)">reject</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#select(net.conic.prototype.Iterator)">select</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#sortBy(net.conic.prototype.Iterator)">sortBy</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#toArray()">toArray</A>, <A HREF="../../../net/conic/prototype/Enumerable.html#zip(net.conic.prototype.Object...)">zip</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_net.conic.prototype.Object"><!-- --></A>

⌨️ 快捷键说明

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