Why can't the .click () in the delegate binding be triggered?

double $ is due to the use of framework7

$$(".drop-menu-backdrop").on("click", function () {
    $$("-sharpopen_drop_menu").removeClass("open").find("i").text("keyboard_arrow_down");
    $$(".drop-menu").css("height", 0);
    $$(".drop-menu-backdrop").hide();
});
$$(".drop-menu").on("click", "ul>li", function () {
    var _this = $$(this);
    _this.addClass("active");
    _this.siblings().removeClass("active");
    $$(".drop-menu-backdrop").click();
    // $$(".drop-menu-backdrop").trigger("click");
});

Why can"t you execute the sentence $$(".drop-menu-backdrop"). Click (); ), not even trigger ? It can be executed in the browser console .
ask the elder to solve the problem ~! Thank you

Mar.29,2021

what do you mean you can't execute? here is the registration event.


can't be not definded until there is a click event. But the click event code is written without asking any questions. Is there no click event


code is incomplete? you can try event delegation

.
Menu