Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コンポーネントで jquery を使用してオブジェクトを削除しようとし.html('')ています。ほとんどのブラウザで動作しますが、Safari では動作しません。なぜこれが起こるのですか?
.html('')
DOM から要素を取り出したい場合は、 を使用し、使用remove()しないでください.html("")。
remove()
.html("")
要素を空にしたい場合は、 を使用しますempty()。
empty()
また、あなたの質問に答えるために、このjsfiddle.html('')でテストされた私の Safari で動作するため、コードにバグがある可能性があります。