測試一下可執行的js

ap0581w9c發表於2012-07-16

canrun

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>grid</title>
        <link rel="stylesheet" type="text/css" href="http://www.padpeek.com/ext/resources/css/ext-all.css" />
        <script type="text/javascript" src="http://www.padpeek.com/ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="http://www.padpeek.com/ext/ext-all.js"></script>
        <script type="text/javascript" src="http://www.padpeek.com/ext/source/locale/ext-lang-zh_CN.js"></script>
        <script type="text/javascript">
Ext.onReady(function(){

    Ext.QuickTips.init();

    var form = new Ext.form.FormPanel({
        labelAlign: `right`,
        labelWidth: 60,
        title: `form`,
        frame:true,
        width: 650,
        url: `04_01_01.jsp`,

        items: [{
            layout:`column`,
            items: [{
                columnWidth:.33,
                layout: `form`,
                defaultType: `textfield`,
                items:[
                    {fieldLabel: `倆字`},
                    {fieldLabel: `倆字`}
                ]
            },{
                columnWidth:.33,
                layout: `form`,
                defaultType: `textfield`,
                items:[
                    {fieldLabel: `三個字`},
                    {fieldLabel: `三個字`},
                    {fieldLabel: `三個字`}
                ]
            },{
                columnWidth:.33,
                layout: `form`,
                defaultType: `textfield`,
                items:[
                    {fieldLabel: `四個漢字`},
                    {fieldLabel: `四個漢字`},
                    {fieldLabel: `四個漢字`},
                    {fieldLabel: `四個漢字`}
                ]
            }]
        }],
        buttons: [{
            text: `按鈕`,
            handler: function() {
                form.getForm().submit();
            }
        }]
    });
    form.render("form");

});
        </script>
    </head>
    <body>
        <script type="text/javascript" src="../examples.js"></script>
        <div id="form" style="margin:100px;"></div>
    </body>
</html>


相關文章