Skip to content

Commit

Permalink
Update moments.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zfour authored Mar 7, 2021
1 parent c022445 commit 1c802eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moments.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ var addnumber = 10; //每次加载增加的篇数
var opentype = '_blank'; //'_blank'打开新标签,'_self'本窗口打开
var nofollow = true; //禁止搜索引擎抓取

//添加加载动画
var $dom = document.querySelector('#moments_container');
$dom.innerHTML = '<span id="moments_loading"><i class="fa fa-spinner fa-spin"></i></span>';

//处理数据

if(document.getElementById('moments_container')){
//添加加载动画
var $dom = document.querySelector('#moments_container');
$dom.innerHTML = '<span id="moments_loading"><i class="fa fa-spinner fa-spin"></i></span>';

fetch(requests_url).then(
data => data.json()
).then(
Expand Down

0 comments on commit 1c802eb

Please sign in to comment.