なにこのSafariの動き。どういうこと?constとDOMのidが一致するとエラーが起きるの?

ledsunledsun のブックマーク 2017/08/30 15:34

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

"can't create duplicate variable that shadows a global property"

    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. const abc = document.querySelector("#abc"); //err const abz = docum...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう