尝试在 Sencha Touch 2.1 中创建表单登录
...
xtype: 'fieldset',
title: 'My Login',
items: [
{
xtype: 'emailfield',
placeHolder: 'Username',
itemId: 'userNameTextField',
name: 'userNameTextField',
required: true
},
{
xtype: 'passwordfield',
placeHolder: 'Password',
itemId: 'passwordTextField',
name: 'passwordTextField',
required: true
}
]
...
但在 Chrome 控制台中
<input id="ext-element-14" class="x-input-el x-form-field x-input-email" type="email" autocapitalize="off" placeholder="Username" name="userNameTextField">
为什么 ItemId 不起作用?