---
title: "Ext.FormPanel,取得items"
author: "guojian3021886"
date: "2009-09-10T14:54:07Z"
tags: ["EXT"]
slug: "ext-formpanel-items"
draft: false
lastmod: "2009-09-10T14:54:07Z"
id: 466266
url: "https://hchmsguo.iteye.com/blog/466266"
---

取得items，设置为不可入力。

 

// 用name.

Ext.getCmp("formPanel").form.findField('resourcesname').getEl().dom.readOnly = true;

 

// 用ID，必须指定id

Ext.getCmp("formPanel").findById('resourcesname').getEl().dom.readOnly = true;