Open anitakym opened 7 years ago
你可以把 html 中的 toc 改成别的什么名字。
是 Safari 的 bug, 常量的名字和元素 id 的名字不能一样。
On 5 December 2016 at 16:40, anitakym notifications@github.com 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 .
明白了,谢谢老师
浏览器:"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)
请问有什么解决办法呢?谢谢!