我需要为已经有一个类的按钮分配一个 ID。我只能使用该代码分配一个新类:
<script>
(function($) {
$(document).ready(function() {
var buttonFancy = $('.header-content .et_pb_more_button.et_pb_button_one');
buttonFancy.each(function(){
$(this).addClass('treeee');
})
});
})(jQuery)
</script>