作者allstarschh (allstars)
看板Ajax
标题[问题] 问javascript的delete operator
时间Tue May 24 17:11:19 2011
想请问
为什麽
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