javascript - angular 第一次点击锚点 刷新所在的controller 第二次点击锚点才跳到对应位置
大家讲道理
大家讲道理 2017-04-11 09:16:41
0
0
591

点击之前,url是 /index
第一次点击的时候 走完controller 里的 gotoAnchor('floor1')之后 url 未变,之后自动又走了activate方法,url变成了/index#floor1 然后 再次点击 gotoAnchor('floor1')时,就能够正确跳到floor1的位置,为什么呢

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

membalas semua(0)
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan