我使用此代码创建了一个单选按钮。
var slotDurationSettingsRow = dojo.create('tr', null, table);
dojo.create('td', {innerHTML: 'Slot Dauer'}, slotDurationSettingsRow);
var durationSettingsTD = dojo.create('td', {align: 'right'}, slotDurationSettingsRow);
var durationSettingsContainer = dojo.create('div', null, durationSettingsTD);
var radioOne = new dijit.form.RadioButton({
label:"RadioButton1",
value: "tea",
name: "drink",
},
durationSettingsContainer);
按钮已创建,但标签属性似乎不起作用。请帮我找出问题?