1.首先加入script 到這裡下載 http://malsup.com/jquery/block/#download <script src="assets/js/jquery.blockUI.js"></script> 2.把下面這段程式碼貼到需要跑的地方 //開始搜尋跳出等待畫面 $.blockUI({message:'系統處理中', css: { border: 'none', padding: '15px', backgroundColor: '#000', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', opacity: .5, color: '#fff' } }); console.log('blockUI'); 3.解除blockUI $.unblockUI({ fadeOut: 200 });