• Ext.form.field.Hidden隐藏字段


    Ext.form.field.Hidden示例

    代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.form.field.Hidden示例</title>
        <link href="ext-4.0.7-gpl/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
        <script src="ext-4.0.7-gpl/bootstrap.js" type="text/javascript"></script>
        <script type="text/javascript">
            Ext.onReady(function () {
                var frm = new Ext.form.Panel({
                    title: "Ext.form.field.Hidden示例",
                    bodyStyle: "padding:5",
                    frame: true,
                    height: 100,
                     280,
                    renderTo: Ext.getBody(),
                    defaultType: "textfield",
                    defaults: [{
                        labelSeparator: "",
                        labelWidth: 50,
                         200,
                        labelAlign: "left"
                    }],
                    items: [{
                        name: "UserID",
                        xtype: "hidden"
                    }, {
                        name: "UserName",
                        fieldLabel: "用户名"
                    }, {
                        name: "Password",
                        fieldLabel: "密码",
                        inputType: "password"
                    }]
                });
            });
        </script>
    </head>
    <body>
    </body>
    </html>

    效果图:

  • 相关阅读:
    DAY9 函数初识(各种参数的用法)
    CSS背景
    HTML/CSS 练习
    从JDBC到commons-DBUtils
    SQL
    MYSQL数据库基本操作
    JDBC
    Stream数据流(Collection接口扩充)
    Stack栈
    Map集合接口
  • 原文地址:https://www.cnblogs.com/libingql/p/2465332.html
Copyright © 2020-2023  润新知