阅读背景:

jquerymobile tap事件被触发两次。

来源:互联网 
//隐藏page header
    $("#yx_article_cnt").tap(function () {
        console.log("i am tap ...");
        var heightVal = $("#articleHeader").css("height");
        if (heightVal == "0px") {
            $("#articleHeader").show();
            $("#articleHeader").animate({ height: "42px" }, 300, function () { });
        } else {
            $("#articleHeader").animate({ height: "0px" }, 300, function () { $("#articleHeader").hide(); });
        }

       // return false;
    })
//隐藏page header
    $("#yx_article_cnt").ta



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: