jQuery mobile: How to invoke this (default) error loading page message?

后端 未结 1 1650
既然无缘
既然无缘 2021-01-03 08:55

I am building RESTful mobile app and I like the default behaviour when resource is not found. jQuery Mobile shows this:

相关标签:
1条回答
  • 2021-01-03 09:30
    //show error message
    $( "<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>YOUR MESSAGE</h1></div>" )
      .css({ "display": "block", "opacity": 0.96, "top": $(window).scrollTop() + 100 })
      .appendTo( $.mobile.pageContainer )
      .delay( 800 )
      .fadeOut( 400, function() {
        $( this ).remove();
      });
    
    0 讨论(0)
提交回复
热议问题