Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer IE9采用基于#的url_Internet Explorer_Backbone.js - Fatal编程技术网

Internet explorer IE9采用基于#的url

Internet explorer IE9采用基于#的url,internet-explorer,backbone.js,Internet Explorer,Backbone.js,将BackbonepushState设置为true 对于没有历史API的IE 9,我的所有URL都会在前面的示例中获得一个 如果用户在www.mysite.com 然后单击enter 他们被带到IE 9中的www.mysite.com/#userdetails/和其他支持历史API的浏览器中,他们被带到www.mysite.com/userdetails/ 用户在IE9或IE11中看到的URL是否有相同的方式,即没有文档中的#? pushState支持在主干网中纯粹基于选择加入。更老的 不支持p

Backbone
pushState
设置为
true

对于没有历史API的IE 9,我的所有URL都会在前面的示例中获得一个

如果用户在
www.mysite.com

然后单击enter

他们被带到IE 9中的
www.mysite.com/#userdetails/
和其他支持历史API的浏览器中,他们被带到
www.mysite.com/userdetails/


用户在IE9或IE11中看到的URL是否有相同的方式,即没有文档中的
#

pushState支持在主干网中纯粹基于选择加入。更老的 不支持pushState的浏览器将继续使用基于哈希的 URL片段,并且如果一个哈希URL被一个支持pushState的 浏览器,它将透明地升级到真实的URL

我看到的唯一选择是:

如果您想使用pushState,但浏览器本身不支持它,则可以使用全页刷新,您可以在选项中添加{hashChange:false}

这会使用整页刷新,可能不是您想要的