0
내가 추가 한 UI를 jQuery의 selectmenu 자리가 오류를JQuery와 UI를 selectmenu 자리가
$.widget('app.selectmenu', $.ui.selectmenu, {
_drawButton: function() {
this._super();
var selected = this.element
.find('[selected]')
.length,
placeholder = this.options.placeholder;
if (!selected && placeholder) {
this.buttonText.text(placeholder);
}
}
});
$('select').selectmenu({
placeholder: 'Select a speed'
});
오류를 보여주는 작동하지 작동하지 않는 것은 text is not defined
입니다.
this.buttonItem.text(placeholder);
- 버튼이하는 존재 :
this.buttonText.text(placeholder);
시도에 : 나는 1.12.0