IOS9.0??hash???Bug????????
???????????? ???????[ 2015/9/22 14:27:28 ] ????????iOS ??????
???????????
????????????????????????????????????????????Gg????????????????????????????μ??????iphone??bug??????????????????????????iphone?????????????????????????????????з??????????????????????????????????ios9?????????????λ?????????????????????????????????????????????????????????????????????????fiddler?滻?????????????????alert??????????????????λ????backbone????backbone???????????????_updateHash???????и??hash????????location.hash??location.replace????????????е????????hash??????????????????ios9??hash???????б仯??????
????backbone??hash???????
??????????????backbone????????bk???У????????route.navigate????????·????????bk????????????hash???????滻??????е?hash?????????loadUrl?????????ж???????·?????????л??????????????????????′???
????route.navigate??????????????--->_updateHash?????μ?????е?url??->loadUrl???????ж??????·???????->callback????л???????;
??????????????????????????????????????????????????js????url????????????????ж????onhashchange?????????????????????start????????????popstate?????????????????????????bk??????????????μ?????????????????????????????????????hash???仯????????????????????????hash??????仯??????????????????£??????????????url?仯??????????????????????????????????????????????μ????
????back/forward??????????????????------>onhashchange??????hash??仯??----->checkUrl(???loadUrl?????url???÷?????????????????????????????????return)---->loadUrl??????????????????·??????---->callback(?????????????);
??????ж????????????????????ios9????????????????????????????????????????????????????????????????????url??????????????????url???????μ??
????????????
??????????????????????????google??????????????????????????С??????????bug????????github???????????????2?ios9????????bk????anglar????????????????????hash???????????????е?????????????????????????????β????????????????±???????????????ios9?????????????????????????????????????????????_updateHash???????????:
??????????????????????????????????????????hash???仯?????ios9????9~30ms???????ε?alert????????????????????????????????????>30ms?????С??????loadUrl???????50ms??50ms??????????????????????????????????Щ??г???????????????????????????????????1599?????????????????????:
????if (options.trigger) {
????var self = this;//this????????????
????setTimeout(function(){//???50ms???
????return self.loadUrl(fragment);
????}?? 50);
????}
???????????????????????????????????????
????????
???????????????????????????????????????????????????????????????????????bug?????????????????????????Ρ???????????????Сbug?????????????????????????????????????????????bug???????????????Щ??????д????????????????????????????bk?????????????????????????Щ????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11