# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/occjouq
js 如何控制一次只加載一張圖片,加載完成後再加載下一張**
今天看到一個面試題,是關於 img 圖片加載方面的,有必要記錄一下。其實關於這個問題,只要知道圖片什麼時候加載完成就能解決了。通過 onload 事件判斷 Img 標籤加載完成-------------------------實現邏輯:新建一個 Image 對象實例,爲實例對象設置 src 屬性等,在 onload 事件中添加此實例對象到父元素中,然後將圖片地址數組中的第一個元素剔除,繼續調用此方 ⌘ Read more