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 3, 2021
1 parent 9a93b36 commit f043b52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moments.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,17 @@ let data_handle = (data, maxnumber) => {
};

//网络请求
fetch(requests_url).then(
if(document.getElementById('moments_container') ){
fetch(requests_url).then(
data => data.json()
).then(
data => {
orign_data = data;
data_handle(orign_data, maxnumber)
}
)
}




Expand Down

1 comment on commit f043b52

@vercel
Copy link

@vercel vercel bot commented on f043b52 Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.