這種有缺陷,如果這個key定義了,並且就是很2的賦值為undefined,那麼這句就會出問題了。 2.!(“key” in obj) 3.obj.hasOwnProperty(“key”). 這兩種方法就 ...
確定! 回上一頁