{"id":1419,"date":"2026-07-09T07:17:52","date_gmt":"2026-07-08T23:17:52","guid":{"rendered":"https:\/\/www.loongdi.net\/blog\/?p=1419"},"modified":"2026-07-09T07:17:52","modified_gmt":"2026-07-08T23:17:52","slug":"%e6%8e%a2%e7%b4%a2extjs%e6%a1%86%e6%9e%b6%e7%9a%84%e5%be%b7%e8%ae%af%e7%94%b5%e8%ae%af%e6%8e%92%e5%90%8d","status":"publish","type":"post","link":"https:\/\/www.loongdi.net\/blog\/1419.html","title":{"rendered":"\u63a2\u7d22ExtJS\u6846\u67b6\u7684\u5fb7\u8baf\u7535\u8baf\u6392\u540d"},"content":{"rendered":"<p><h3>\u4ec0\u4e48\u662fExtJS\u6846\u67b6\uff1f<\/h3>\n<\/p>\n<p><p>ExtJS\u6846\u67b6\u662f\u4e00\u4e2a\u57fa\u4e8eJavaScript\u7684\u5bcc\u5ba2\u6237\u7aef\u6846\u67b6\uff0c\u4e3b\u8981\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u548c\u79fb\u52a8\u7aef\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684UI\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u5177\u6709\u9ad8\u6027\u80fd\u548c\u826f\u597d\u7528\u6237\u4f53\u9a8c\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>ExtJS\u6846\u67b6\u5305\u542b\u54ea\u4e9b\u5185\u5bb9\uff1f<\/h3>\n<\/p>\n<p><p>ExtJS\u6846\u67b6\u5305\u542b\u5927\u91cf\u7684UI\u7ec4\u4ef6\uff0c\u5982\u6309\u94ae\u3001\u8868\u683c\u3001\u7a97\u53e3\u3001\u83dc\u5355\u7b49\uff0c\u540c\u65f6\u8fd8\u63d0\u4f9b\u4e86\u6570\u636e\u7ed1\u5b9a\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u5e03\u5c40\u7ba1\u7406\u7b49\u529f\u80fd\u3002\u6b64\u5916\uff0cExtJS\u8fd8\u652f\u6301\u5404\u79cd\u6570\u636e\u5b58\u50a8\u65b9\u5f0f\uff0c\u5982\u672c\u5730\u5b58\u50a8\u3001Web\u670d\u52a1\u3001\u6570\u636e\u5e93\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code><\/p>\r\n<p>Ext.onReady(function() {<\/p>\r\n<p>    Ext.create('Ext.form.Panel', {<\/p>\r\n<p>        title: '\u7528\u6237\u4fe1\u606f\u8868\u5355',<\/p>\r\n<p>        width: 300,<\/p>\r\n<p>        bodyPadding: 10,<\/p>\r\n<p>        renderTo: Ext.getBody(),<\/p>\r\n<p>        items: [{<\/p>\r\n<p>            xtype: 'textfield',<\/p>\r\n<p>            fieldLabel: '\u59d3\u540d',<\/p>\r\n<p>            name: 'name'<\/p>\r\n<p>        }, {<\/p>\r\n<p>            xtype: 'textfield',<\/p>\r\n<p>            fieldLabel: '\u90ae\u7bb1',<\/p>\r\n<p>            name: 'email'<\/p>\r\n<p>        }],<\/p>\r\n<p>        buttons: [{<\/p>\r\n<p>            text: '\u4fdd\u5b58',<\/p>\r\n<p>            handler: function() {<\/p>\r\n<p>                \/\/ \u4fdd\u5b58\u6570\u636e<\/p>\r\n<p>            }<\/p>\r\n<p>        }]<\/p>\r\n<p>    });<\/p>\r\n<p>});<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5982\u4f55\u4f7f\u7528ExtJS\u6846\u67b6\uff1f<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528ExtJS\u6846\u67b6\uff0c\u9996\u5148\u9700\u8981\u5f15\u5165ExtJS\u5e93\u6587\u4ef6\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u7ec4\u4ef6\u5b9e\u4f8b\u6765\u6784\u5efaUI\u754c\u9762\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528ExtJS\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u8868\u5355\uff1a<\/p>\n<\/p>\n<p><pre><code><\/p>\r\n<p>Ext.onReady(function() {<\/p>\r\n<p>    Ext.create('Ext.form.Panel', {<\/p>\r\n<p>        title: '\u7528\u6237\u4fe1\u606f\u8868\u5355',<\/p>\r\n<p>        width: 300,<\/p>\r\n<p>        bodyPadding: 10,<\/p>\r\n<p>        renderTo: Ext.getBody(),<\/p>\r\n<p>        items: [{<\/p>\r\n<p>            xtype: 'textfield',<\/p>\r\n<p>            fieldLabel: '\u59d3\u540d',<\/p>\r\n<p>            name: 'name'<\/p>\r\n<p>        }, {<\/p>\r\n<p>            xtype: 'textfield',<\/p>\r\n<p>            fieldLabel: '\u90ae\u7bb1',<\/p>\r\n<p>            name: 'email'<\/p>\r\n<p>        }],<\/p>\r\n<p>        buttons: [{<\/p>\r\n<p>            text: '\u4fdd\u5b58',<\/p>\r\n<p>            handler: function() {<\/p>\r\n<p>                \/\/ \u4fdd\u5b58\u6570\u636e<\/p>\r\n<p>            }<\/p>\r\n<p>        }]<\/p>\r\n<p>    });<\/p>\r\n<p>});<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u63a8\u8350\u4f7f\u7528ExtJS\u6846\u67b6\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f<\/h3>\n<\/p>\n<p><p>\u63a8\u8350\u4f7f\u7528ExtJS\u6846\u67b6\u7684\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4e30\u5bcc\u7684UI\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u53ef\u4ee5\u5feb\u901f\u6784\u5efa\u590d\u6742\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u652f\u6301\u591a\u79cd\u6570\u636e\u5b58\u50a8\u65b9\u5f0f\uff0c\u65b9\u4fbf\u4e0e\u540e\u7aef\u6570\u636e\u8fdb\u884c\u4ea4\u4e92\u3002<\/li>\n<li>\u826f\u597d\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\uff0c\u9002\u5408\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u793e\u533a\u652f\u6301\u5f3a\u5927\uff0c\u6709\u5927\u91cf\u7684\u6559\u7a0b\u548c\u63d2\u4ef6\u53ef\u4f9b\u53c2\u8003\u3002<\/li>\n<\/ul>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.loongdi.net\/blog\/wp-content\/uploads\/2026\/03\/mg5IZnSq9.jpg\" alt=\"\u63a2\u7d22ExtJS\u6846\u67b6\u7684\u5fb7\u8baf\u7535\u8baf\u6392\u540d\" title=\"\u63a2\u7d22ExtJS\u6846\u67b6\u7684\u5fb7\u8baf\u7535\u8baf\u6392\u540d\"><\/p>\n<p><h3>\u4e3a\u4ec0\u4e48\u9009\u62e9ExtJS\u6846\u67b6\u800c\u4e0d\u662f\u5176\u4ed6\u6846\u67b6\uff1f<\/h3>\n<\/p>\n<p><b>\u4e3a\u4ec0\u4e48ExtJS\u6846\u67b6\u6bd4\u5176\u4ed6\u6846\u67b6\u66f4\u9002\u5408\u5f00\u53d1\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff1f<\/b><\/p>\n<p><p>ExtJS\u6846\u67b6\u6bd4\u5176\u4ed6\u6846\u67b6\u66f4\u9002\u5408\u5f00\u53d1\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684UI\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u4ee5\u53ca\u826f\u597d\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002\u6b64\u5916\uff0cExtJS\u8fd8\u62e5\u6709\u5f3a\u5927\u7684\u6570\u636e\u7ed1\u5b9a\u548c\u4e8b\u4ef6\u5904\u7406\u673a\u5236\uff0c\u4f7f\u5f97\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h3>ExtJS\u6846\u67b6\u662f\u5426\u652f\u6301\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff1f<\/h3>\n<\/p>\n<p><b>ExtJS\u6846\u67b6\u5982\u4f55\u5b9e\u73b0\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff1f<\/b><\/p>\n<p><p>ExtJS\u6846\u67b6\u652f\u6301\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u3002\u901a\u8fc7\u4f7f\u7528ExtJS\u7684\u54cd\u5e94\u5f0f\u5e03\u5c40\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u4e0d\u540c\u5c4f\u5e55\u5c3a\u5bf8\u4e0b\u7684\u81ea\u9002\u5e94\u5e03\u5c40\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528ExtJS\u521b\u5efa\u4e00\u4e2a\u54cd\u5e94\u5f0f\u5e03\u5c40\uff1a<\/p>\n<\/p>\n<p><pre><code><\/p>\r\n<p>Ext.onReady(function() {<\/p>\r\n<p>    Ext.create('Ext.container.Viewport', {<\/p>\r\n<p>        layout: 'fit',<\/p>\r\n<p>        items: [{<\/p>\r\n<p>            xtype: 'panel',<\/p>\r\n<p>            title: '\u54cd\u5e94\u5f0f\u5e03\u5c40',<\/p>\r\n<p>            width: 300,<\/p>\r\n<p>            height: 200,<\/p>\r\n<p>            renderTo: Ext.getBody()<\/p>\r\n<p>        }]<\/p>\r\n<p>    });<\/p>\r\n<p>});<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>ExtJS\u6846\u67b6\u7684\u793e\u533a\u652f\u6301\u5982\u4f55\uff1f<\/h3>\n<\/p>\n<p><b>ExtJS\u6846\u67b6\u7684\u793e\u533a\u652f\u6301\u6709\u54ea\u4e9b\u4f18\u52bf\uff1f<\/b><\/p>\n<p><p>ExtJS\u6846\u67b6\u7684\u793e\u533a\u652f\u6301\u975e\u5e38\u5f3a\u5927\uff0c\u62e5\u6709\u5927\u91cf\u7684\u6559\u7a0b\u3001\u63d2\u4ef6\u548c\u8bba\u575b\u3002\u8fd9\u4e9b\u8d44\u6e90\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u89e3\u51b3\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u7684\u95ee\u9898\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u6b64\u5916\uff0c\u793e\u533a\u6210\u5458\u4e4b\u95f4\u7684\u4ea4\u6d41\u4e5f\u4f7f\u5f97ExtJS\u6846\u67b6\u4e0d\u65ad\u4f18\u5316\u548c\u66f4\u65b0\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fExtJS\u6846\u67b6\uff1f ExtJS\u6846\u67b6\u662f\u4e00\u4e2a\u57fa\u4e8eJavaScript\u7684\u5bcc\u5ba2\u6237\u7aef\u6846\u67b6\uff0c\u4e3b\u8981\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u548c\u79fb\u52a8\u7aef\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684UI\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u5177\u6709\u9ad8\u6027\u80fd\u548c\u826f\u597d\u7528\u6237\u4f53\u9a8c\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002 ExtJS\u6846\u67b6\u5305\u542b\u54ea\u4e9b\u5185&#8230;<\/p>\n","protected":false},"author":1,"featured_media":16,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"topic":[],"class_list":["post-1419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hw"],"_links":{"self":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/comments?post=1419"}],"version-history":[{"count":1,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":1420,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1419\/revisions\/1420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media\/16"}],"wp:attachment":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media?parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/categories?post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/tags?post=1419"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/topic?post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}