将window.location.reload()与以下函数

时间:2018-02-06 07:41:48

标签: jquery

我正在寻找命令window.location.reload();与后续行动相结合。有人可以帮我挂这些吗? 单独行动是有效的。这是我的JQuery代码:

// Page reload
window.location.reload();
// delete active classe
$("#panel-'. $formKey[1] . ' button").on("click", function (e) {
    // close active panels
    $("content .accordion .accordion-navigation.proposal-90").removeClass("active");
    $("content .accordion .accordion-navigation a#panel-90").removeClass("active");
    $("content .accordion .accordion-navigation div#panel-90").removeClass("active");
    $("content .accordion .accordion-navigation a#panel-90").removeClass("choose");
    $("content .accordion .accordion-navigation a#panel-").addClass("notchoose");
    // open evaluation panel
    $("content .accordion li#96.accordion-navigation").removeClass("hidden");
    $("content .accordionli#96.accordion-navigation").addClass("active");
    $("content .accordion .accordion-navigation a#panel-96").addClass("active");
    $("content .accordion .accordion-navigation div#panel-96").addClass("active");
});

非常感谢你的帮助。 m.orange

0 个答案:

没有答案