Git Product home page Git Product logo

Comments (8)

chilijung avatar chilijung commented on August 16, 2024

hi @youchenlee

有關 hashbang 的問題現在 google 建議是用 pushState

http://www.youtube.com/watch?feature=player_embedded&v=yiAF9VdvRPw

可以看一下 youtube 的影片

近幾年 html5 的 pushState 慢慢的取代了 hashbang

所以目前使用的 pushState 應該不會換到 hashbang

from g0v.tw.

chilijung avatar chilijung commented on August 16, 2024

http://www.dns.com.tw/seo/?p=9120 # 另一篇文章

from g0v.tw.

youchenlee avatar youchenlee commented on August 16, 2024

Hi @chilijung ,
謝謝你的詳細指教與提供資料,我會再研究看看多學習的。

今天因為發現 Google 搜尋找不到「參與我們」頁面內的其他頁籤內容,因此以為是這個問題。
現在想想,也許只是因為內容太新,尚未被爬到。

另外想請問一下,目前雖用 pushState ,網址對於瀏覽器按上一頁、下一頁會有變化,然而頁面內容卻不會更新,是否是因為尚未 implement 呢?

from g0v.tw.

chilijung avatar chilijung commented on August 16, 2024

@youchenlee 想請問一下,你是用哪一種瀏覽器呢?

因為目前我是直接用 pushState 但是好像支援的瀏覽器都要滿新的。
我可能最近會用 polyfills 來解決這個問題

https://github.com/browserstate/history.js

from g0v.tw.

youchenlee avatar youchenlee commented on August 16, 2024

@chilijung
我指得上一頁,下一頁是瀏覽器本身的的前一頁、後一頁的按鈕。

目前這邊 Firefox Nightly, Safari, Chrome 狀況是相同的,網址會更新,但內容不會更新。(不算是什麼嚴重問題)
至於直接點頁面上的頁籤,功能很正常,都會更新。

謝謝你的幫忙,辛苦了。
history.js 剛好也是我最近想玩的。(之前只 try 過很少人用的 davis.js)

from g0v.tw.

chilijung avatar chilijung commented on August 16, 2024

真的耶...好我最近改善一下上一頁下一頁的問題...感謝回報!

from g0v.tw.

youchenlee avatar youchenlee commented on August 16, 2024

既然如此我改一下 issue title.
orig: Implement AJAX crawling scheme support for http://g0v.tw/join.html
new: 改善 http://g0v.tw/join.html 頁面,點選 tab 後,瀏覽器按上一頁、下一頁無效的問題
謝謝你。

from g0v.tw.

chilijung avatar chilijung commented on August 16, 2024

ok sure thanks!

from g0v.tw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.