您正在将事件处理程序添加到<select>元素。 因此,$(this)将是下拉 ... 您需要找到选中的<option>,如下所示: var option = $('option:selected', this).attr('mytag');
確定! 回上一頁