测试一下可运行的js

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>
posted @ 2012-07-16 22:05  meetrice  阅读(187)  评论(0编辑  收藏  举报