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

📄 ext.form.action.load.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!--Mock<link rel="stylesheet" type="text/css" href="http://localhost/ext/resources/css/ext-all.css" /><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/docs.css"/><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/style.css"/>--><style type="text/css">    body {        overflow: scroll;    }    /**	 .mdesc .long {        display: block;    }     */</style><!-- End Mock--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><div class="body-wrap">    <div class="top-tools">        <a class="inner-link" href="#Ext.form.Action.Load-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.form.Action.Load-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.form.Action.Load-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.form.Action.Load-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.form.Action.Load"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a>    </div><h1>Class Ext.form.Action.Load</h1>    <table cellspacing="0">        <!--        <tr>        <td class="label">        Package:        </td>        <td class="hd-info">        </td>        </tr>        -->        <tr>            <td class="label">                Defined In:            </td>            <td class="hd-info">                Ext.form.Action.Load.js            </td>        </tr>        <tr>            <td class="label">                Class:            </td>            <td class="hd-info">                Ext.form.Action.Load            </td>        </tr>        <tr>            <td class="label">                Extends:            </td>            <td class="hd-info">                Ext.form.Action            </td>        </tr>    </table>    <div class="description">        A class which handles loading of data from a server into the Fields of
  an <a href="###" onClick="alert('Ext.form.BasicForm');">Ext.form.BasicForm</a>. 
  <br><br>
  Instances of this class are only created by a {@link Ext.form.BasicForm Form} when 
  submitting.
  <br><br>
  A response packet <b>must</b> contain a boolean <tt style="font-weight:bold">success</tt> property, and
  a <tt style="font-weight:bold">data</tt> property. The <tt style="font-weight:bold">data</tt> property contains the
  values of Fields to load. The individual value object for each Field
  is passed to the Field's {@link Ext.form.Field#setValue setValue} method.
  <br><br>
  By default, response packets are assumed to be JSON, so a typical response
  packet may look like this:
  <br><br><pre><code>
{
    success: true,
    data: {
        clientName: "Fred. Olsen Lines",
        portOfLoading: "FXT",
        portOfDischarge: "OSL"
    }
}</code></pre>
  <br><br>
  Other data may be placed into the response for processing the the {@link Ext.form.BasicForm Form}'s callback
  or event handler methods. The object decoded from this JSON is available in the <a href="###" onClick="alert('#result');">#result</a> property.
     </div>    <div class="hr">    </div>    <a id="Ext.form.Action.Load-configs"></a>    <h2>配置项</h2>            <table cellspacing="0" class="member-table">            <tr>                <th class="sig-header" colspan="2">                    配置项                </th>                <th class="msource-header">                    定义者                </th>            </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="url-header"></a>                        <b>url</b>                        : String                        <div class="mdesc">                            <div class="short">                                Action调用的URL资源。                             </div>                            <div class="long">                                Action调用的URL资源。                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-url" 								href="output/Ext.form.Action.html#method-url">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="-header"></a>                        <b></b>                        : Boolean} reset 当设置为 <tt><b>true</b></tt>的时候, 导致表单重置 {@link Ext.form.BasicForm.reset reset                        <div class="mdesc">                            <div class="short">                                如果指定了该值,reset将在表单的#success 回调函数前和{@...                             </div>                            <div class="long">                                如果指定了该值,reset将在表单的<a href="###" onClick="alert('#success');">#success</a> 回调函数<b>前</b>和{@link Ext.form.BasicForm.actioncomplete actioncomplete}事件被激发前执行。  event fires.                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-" 								href="output/Ext.form.Action.html#method-">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="method-header"></a>                        <b>method</b>                        : String                        <div class="mdesc">                            <div class="short">                                The HTTP method to use to access th...                             </div>                            <div class="long">                                The HTTP method to use to access the requested URL. Defaults to the  @cfg {String} method 获取请求的URL的HTTP方法。默认为{@link Ext.form.BasicForm}的方法。如果没有指定,使用DOM表单的方法。                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-method" 								href="output/Ext.form.Action.html#method-method">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="params-header"></a>                        <b>params</b>                        : Mixed                        <div class="mdesc">                            <div class="short">                                传递到额外值。它们添加到表单的Ext.form.BasicForm#b...                             </div>                            <div class="long">                                传递到额外值。它们添加到表单的<a href="###" onClick="alert('Ext.form.BasicForm#baseParams');">Ext.form.BasicForm#baseParams</a>由表单的输入字段传递到指定的URL。                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-params" 								href="output/Ext.form.Action.html#method-params">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="timeout-header"></a>                        <b>timeout</b>                        : Number                        <div class="mdesc">                            <div class="short">                                在服务端返回 {@link #CONNECT_FAILURE}这样的{...                             </div>                            <div class="long">                                在服务端返回 {@link #CONNECT_FAILURE}这样的{@link #failureType}之前等待的毫秒数。                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-timeout" 								href="output/Ext.form.Action.html#method-timeout">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="success-header"></a>                        <b>success</b>                        : Function                        <div class="mdesc">                            <div class="short">                                当接收到一个有效的成功返回的数据包的时候调用的回调函数。 这个函数传...                             </div>                            <div class="long">                                当接收到一个有效的成功返回的数据包的时候调用的回调函数。 这个函数传递以下的参数:<ul class="mdetail-params"> <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">作出请求动作的表单</div></li> <li><b>action</b> : Ext.form.Action<div class="sub-desc">Action类。该对象的<a href="###" onClick="alert('#result');">#result</a> 属性可能被检查,用来执行自定义的后期处理。 </ul>                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-success" 								href="output/Ext.form.Action.html#method-success">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="failure-header"></a>                        <b>failure</b>                        : Function                        <div class="mdesc">                            <div class="short">                                当接收到一个返回失败的数据包或者在Ajax通信时发生错误调用的回调函数...                             </div>                            <div class="long">                                当接收到一个返回失败的数据包或者在Ajax通信时发生错误调用的回调函数。 这个函数传递以下的参数:<ul class="mdetail-params"> <li><b>form</b> : Ext.form.BasicForm<div class="sub-desc">作出请求动作的表单</div></li> <li><b>action</b> : Ext.form.Action<div class="sub-desc">Action类。如果发生了Ajax异常, 错误类型会在<a href="###" onClick="alert('#failureType');">#failureType</a>里。该对象的<a href="###" onClick="alert('#result');">#result</a> 属性可能被检查,用来执行自定义的后期处理。 </ul>                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.form.Action" 								ext:member="#method-failure" 								href="output/Ext.form.Action.html#method-failure">								Action							</a>                                                                    </td>                </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="scope-header"></a>                        <b>scope</b>                        : Object                        <div class="mdesc">                            <div class="short">                                回调函数执行的范围。this 指改回调函数自身。                             </div>                            <div class="long">                                回调函数执行的范围。<tt>this</tt> 指改回调函数自身。                             </div>                        </div>

⌨️ 快捷键说明

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