[問題] 問javascript的delete operator

看板Ajax作者 (allstars)時間14年前 (2011/05/24 17:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
想請問 為什麼 delete window.document會return false 而 delete navigator.geolocation會return true 我是在chrome裡面試的 而我看了webkit裡面的idl DOMWindow.idl readonly attribute Document document; Navigator.idl readonly attribute [EnabledAtRuntime] Geolocation geolocation; 想請問DontDelete的attribute 在idl裡是怎麼定義的 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.22.63.249
文章代碼(AID): #1DstOwRF (Ajax)
文章代碼(AID): #1DstOwRF (Ajax)