Paul提出了一个问题:How do I keep the current tab active with twitter bootstrap after a page reload?,或许与您遇到的问题类似。
回答者Jandgabriel给出了该问题的处理方式:
You'll have to use localStorage or cookies to manage that. Here's a quick and dirty solution that can be vastly improved, but may give you a starting point:
-- -------------------- ---- ------- ------------ - -- --- --------- - --- --------------- --- --------- - --- ------- -- --- ---- ---- -------------------------------------------- -------- --- - -- ---- --- ------ ---- --- ------- -- --- ---- --- ------- ------------------------------- ---------------------- --- -- -- -- --- ------ ---- -- -- ------- --- ------- - -------------------------------- -- --------- - ----------- - ------- - ------------------ - ---
希望本文对你有帮助,欢迎支持JavaScript中文网
来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/11505