Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增簡易的計數器,儲存於 localStorage 中。 #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SansWord
Copy link

新增簡易的計數器,儲存於 localStorage 中。
會在 submit 的 post success 以後更新 counter, 重新整理時 counter 也會在。

我這邊沒有完整的測試環境,上線前請再測試一下。
如果要調整 ui, 記得數字一定要被 以 counter 為 class 的 span 包住。剩下的要怎麼調整就隨意了。

@SansWord
Copy link
Author

我發現我沒有在一開始頁面啟動的時候先 updateCounterView...所以如果重新整理,一開始會顯示 0 筆,直到送出第一次以後數字才會回復。

這塊等上線沒有其他問題以後我再繼續修復。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant