// Default behaviour is a loading spinner positioned absolute, centered and with an overlay. $('#demo-basic .content').waiting();
这个内容会被覆盖
// You can position the indicator/spinner by setting position to one of the following values: // 'center', // 'top left', 'top center', 'top right', // 'center left', 'center right', // 'bottom left', 'bottom center' or 'bottom right' // If you don't want to use the predefined CSS classes you can set position to 'custom', // in that case you have to take care of the CSS yourself. $('#demo-position .content').waiting({ position: 'top left' });
自定义位置
顶部左侧
// You can simply append the indicator by setting overlay to false $('#demo-overlay-false .content').waiting({ overlay: false });
不覆盖本内容
// By setting fixed to true you can expand the overlay over the whole page $('#demo-overlay-false .content').waiting({ fixed: true });
自动退出loading