且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

意外的pagecontainer更改行为

更新时间:2021-12-21 17:29:29

您可以通过在点击处理程序上返回false来防止锚链接重新加载页面:

You can prevent the anchor link from reloading the page by returning false on the tap handler:

  function redirectAdd(e) {
    $("body").pagecontainer("change", "#add", {
      transition: "fade"
    });
    return false;
  }