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

📄 global.html

📁 ajax开发框架prototype中文说明帮助
💻 HTML
📖 第 1 页 / 共 2 页
字号:
public <A HREF="../../../net/conic/prototype/Global.html" title="Global 中的类型参数">OA</A> <B>$</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>...&nbsp;elements)</PRE>
<DL>
<DD>$()方法是document.getElementById()的一个快捷方式引用,但它又做了增强
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>elements</CODE> - 一个或者多个DOM元素的id<b><i>(必须是String类型)</i></b>或者其它对象
<DT><B>返回:</B><DD>根据传入的DOM元素的id或者对象,返回相应的对象. <ul> 与入口参数类型相关的返回                <i>        <li>入口参数elements传入的是一个字符串对象,则将其当做DOM对象id,用document.getElementById()方法取其对象        <li>入口参数elements传入非字符串对象,则原样返回;        </i>  </ul>      <ul> 与入口参数个数相关的返回                <i>        <li>入口参数elements只传入一个,则返回一个对象;        <li>入口参数elements传入多个,则返回相应的数组对象;        <li>入口参数elements不传,则返回空数组;        </i>  </ul>  <p><b>Example:</b></p><pre>&lt;div id="myDiv">&lt;p&gt;This is a paragraph&lt;/p&gt;&lt;/div>&lt;script language="javascript">alert($("myDiv").innerHTML);&lt;/script></pre></DL>
</DD>
</DL>
<HR>

<A NAME="$F(net.conic.prototype.String)"><!-- --></A><H3>
$F</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> <B>$F</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;id)</PRE>
<DL>
<DD>取得表单对象值的快捷方式引用 <p><b>Example:</b></p><pre>&lt;script>        function test3()        {                alert(  $F('userName')  );        }&lt;/script>&lt;input type="text" id="userName" value="Joe Doe">&lt;br> &lt;input type="button" value=Test3 onclick="test3();">&lt;br> </pre>
<P>
<DD><DL>
<DT><B>另请参见:</B><DD><a href="Form.FormElement.html#getValue(net.conic.prototype.Object">Form.Element.getValue(Object)</a></DL>
</DD>
</DL>
<HR>

<A NAME="$A(net.conic.prototype.Object)"><!-- --></A><H3>
$A</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Array.html" title="net.conic.prototype 中的类">Array</A> <B>$A</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>&nbsp;object)</PRE>
<DL>
<DD>将任何的可枚举(iterable)类型对象转换成Array对象
<P>
<DD><DL>
<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Array.html#from(net.conic.prototype.Object)"><CODE>Array.from(Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="$H(net.conic.prototype.Object...)"><!-- --></A><H3>
$H</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A> <B>$H</B>(<A HREF="../../../net/conic/prototype/Object.html" title="net.conic.prototype 中的类">Object</A>...&nbsp;objects)</PRE>
<DL>
<DD>将一个NV数组对象({name1:value1,name2:value2})转换成Hash对象的快捷方式引用
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>objects</CODE> - 一个NV数组对象
<DT><B>返回:</B><DD>Hash对象 <p><b>Example:</b></p><pre>                //创建一个对象                var a = {first: 10,second: 20,third: 30};                //将其转换成Hash对象                var h = $H(a);                alert(h.toQueryString()); //显示: first=10&second=20&third=30</pre><DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/Hash.html" title="net.conic.prototype 中的类"><CODE>Hash</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="$R(int, int, boolean)"><!-- --></A><H3>
$R</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/ObjectRange.html" title="net.conic.prototype 中的类">ObjectRange</A> <B>$R</B>(int&nbsp;start,
                      int&nbsp;end,
                      boolean&nbsp;exclusive)</PRE>
<DL>
<DD>ObjectRange对象的直接实例化方法,类似简单Factory方式
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>start</CODE> - 起始值<DD><CODE>end</CODE> - 结束值<DD><CODE>exclusive</CODE> - false:不包含结束值;true:包含结束值;
<DT><B>返回:</B><DD>ObjectRange<DT><B>另请参见:</B><DD><A HREF="../../../net/conic/prototype/ObjectRange.html" title="net.conic.prototype 中的类"><CODE>ObjectRange</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="escape(net.conic.prototype.String)"><!-- --></A><H3>
escape</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>escape</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;charstring)</PRE>
<DL>
<DD>对 String 对象编码以便它们能在所有计算机上可读
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>charstring</CODE> - 要编码的 String 对象
<DT><B>返回:</B><DD>返回一个包含了 charstring 内容的新的 String 对象( Unicode 格式),  所有空格、标点、重音符号以及其他非 ASCII 字符都用 %xx 编码代替,其中 xx 等于表示该字符的十六进制数。 例如,空格返回的是 "%20" 。 字符的值大于 255 的用 %uxxxx 格式存储。</DL>
</DD>
</DL>
<HR>

<A NAME="eval(net.conic.prototype.String)"><!-- --></A><H3>
eval</H3>
<PRE>
public void <B>eval</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;codeString)</PRE>
<DL>
<DD>检查 JScript 代码并执行.
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>codeString</CODE> - 包含有效 JScript 代码的 String 对象. 这个字符串将由 JScript 分析器进行分析和执行.  <p><b>说明</b></p><pre> eval 函数允许 JScript 源代码的动态执行. 例如,下面的代码创建了一个包含 Date 对象的新变量 mydate :                                 eval("var mydate = new Date();");                传递给 eval 方法的代码执行时的上下文和调用 eval 方法的一样.                 </pre></DL>
</DD>
</DL>
<HR>

<A NAME="isFinite(net.conic.prototype.Number)"><!-- --></A><H3>
isFinite</H3>
<PRE>
public boolean <B>isFinite</B>(<A HREF="../../../net/conic/prototype/Number.html" title="net.conic.prototype 中的类">Number</A>&nbsp;number)</PRE>
<DL>
<DD>返回一个 Boolean 值,指明所提供的数字是否是有限的。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>number</CODE> - 需要判断的Number
<DT><B>返回:</B><DD>如果 number 不是 NaN 、负无穷或正无穷,那么 isFinite 方法将返回 true 。  如果是这三种情况,函数返回 false 。</DL>
</DD>
</DL>
<HR>

<A NAME="isNaN(net.conic.prototype.Number)"><!-- --></A><H3>
isNaN</H3>
<PRE>
public boolean <B>isNaN</B>(<A HREF="../../../net/conic/prototype/Number.html" title="net.conic.prototype 中的类">Number</A>&nbsp;number)</PRE>
<DL>
<DD>返回一个 Boolean 值,指明提供的值是否是保留值 NaN (不是数字)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>number</CODE> - 需要判断的Number
<DT><B>返回:</B><DD>如果值是 NaN, 那么 isNaN 函数返回 true ,否则返回 false 。  使用这个函数的典型情况是检查 parseInt 和 parseFloat 方法的返回值。<br>   还有一种办法,变量可以与它自身进行比较。 如果比较的结果不等,那么它就是 NaN 。 这是因为 NaN 是唯一与自身不等的值。</DL>
</DD>
</DL>
<HR>

<A NAME="parseFloat(net.conic.prototype.String)"><!-- --></A><H3>
parseFloat</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Number.html" title="net.conic.prototype 中的类">Number</A> <B>parseFloat</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;numstring)</PRE>
<DL>
<DD>返回由字符串转换得到的浮点数
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>numstring</CODE> - 包含浮点数的字符串
<DT><B>返回:</B><DD>parseFloat 方法返回与 numstring 中保存的数相等的数字表示。如果 numstring 的前缀不能解释为浮点数,则返回 NaN (而不是数字)。 <pre>                parseFloat("abc")    // 返回 NaN。                parseFloat("1.2abc") // 返回 1.2。                </pre> 另外,可以用 isNaN 方法检测 NaN。</DL>
</DD>
</DL>
<HR>

<A NAME="parseInt(net.conic.prototype.String, int)"><!-- --></A><H3>
parseInt</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/Number.html" title="net.conic.prototype 中的类">Number</A> <B>parseInt</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;numstring,
                       int&nbsp;radix)</PRE>
<DL>
<DD>返回由字符串转换得到的整数。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>numstring</CODE> - 必需的。要转换为数字的字符串。<DD><CODE>radix</CODE> - 可选项。在 2 和 36 之间的表示 numstring 所保存数字的进制的值。如果没有提供,则前缀为 '0x' 的字符串被当作十六进制,前缀为 '0' 的字符串被当作八进制。所有其它字符串都被当作是十进制的。
<DT><B>返回:</B><DD>被转换后的Number<p><b>说明</b></p><pre>parseInt 方法返回与保存在 numstring 中的数字值相等的整数。如果 numstring 的前缀不能解释为整数,则返回 NaN(而不是数字)。                 parseInt("abc")    // 返回 NaN.                parseInt("12abc")  // 返回 12.                可以用 isNaN 方法检测 NaN。                 </pre></DL>
</DD>
</DL>
<HR>

<A NAME="unescape(net.conic.prototype.String)"><!-- --></A><H3>
unescape</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>unescape</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;charstring)</PRE>
<DL>
<DD>解码用 escape 方法进行了编码的 String 对象
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>charstring</CODE> - 要解码的 String 对象
<DT><B>返回:</B><DD>unescape 方法返回保存了 charstring 内容新的 String 对象。  所有以 %xx 十六进制形式编码的字符都用 ASCII 字符集中等价的字符代替。    <br>以 %uxxxx 格式(Unicode 字符)编码的字符用十六进制编码 xxxx 的 Unicode 字符代替.</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>&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/Global.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/Function.html" title="net.conic.prototype 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;<A HREF="../../../net/conic/prototype/Hash.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/Global.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="Global.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;字段&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_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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