if('serviceWorker' in navigator) { div.style.backgroundColor = "green"; div.innerHTML ="serviceWorker exists"; } else { div.style.backgroundColor = "red"; div.innerHTML ="serviceWorker is not exist"; }
Result
개발에 관한 단편적인 지식
if('serviceWorker' in navigator) { div.style.backgroundColor = "green"; div.innerHTML ="serviceWorker exists"; } else { div.style.backgroundColor = "red"; div.innerHTML ="serviceWorker is not exist"; }
댓글
댓글 쓰기