On - [removed].hash - Change?

后端 未结 13 1351
谎友^
谎友^ 2020-11-21 13:38

I am using Ajax and hash for navigation.

Is there a way to check if the window.location.hash changed like this?

http://example.com/blah

13条回答
  •  情书的邮戳
    2020-11-21 13:59

    I've been using path.js for my client side routing. I've found it to be quite succinct and lightweight (it's also been published to NPM too), and makes use of hash based navigation.

    path.js NPM

    path.js GitHub

提交回复
热议问题