ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## code ``` function body_loading(msg='LOADING ...') { var dom = $('<div style="font-size: 30px;z-index: 9999;height: 100%;width: 100%;background-color: rgba(255,255,255,0.6);position: fixed;display: table;">' + '<p style="font-size: 30px;line-height: 100%;vertical-align: middle;display: table-cell;text-align:center;">'+msg+'</p>' + '</div>') $("body").prepend(dom); return dom; } ``` 使用 ``` var dom = body_loading() $.get("url",function(){ dom.remove(); //code ... }) ```