fe-camp icon indicating copy to clipboard operation
fe-camp copied to clipboard

在Safari10.0下,id="toc"的div内容无法显示

Open anitakym opened this issue 8 years ago • 2 comments

浏览器:"5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50"

Getting this error on Safari 10,Happens when a const is given a name that's exactly the same as an id of any element on the page.(http://stackoverflow.com/questions/40091136/cant-create-duplicate-variable-that-shadows-a-global-property)

请问有什么解决办法呢?谢谢!

anitakym avatar Dec 05 '16 08:12 anitakym

你可以把 html 中的 toc 改成别的什么名字。

是 Safari 的 bug, 常量的名字和元素 id 的名字不能一样。

On 5 December 2016 at 16:40, anitakym [email protected] wrote:

浏览器:"5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50"

Getting this error on Safari 10,Happens when a const is given a name that's exactly the same as an id of any element on the page.( http://stackoverflow.com/questions/40091136/cant- create-duplicate-variable-that-shadows-a-global-property)

请问有什么解决办法呢?谢谢!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/webzhao/fe-camp/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfgaHczg9I-uQ089tCnBO-SaUDBs7Gsks5rE83jgaJpZM4LD-RS .

webzhao avatar Dec 05 '16 10:12 webzhao

明白了,谢谢老师

anitakym avatar Dec 05 '16 13:12 anitakym