我想知道變量myVar是否是節點。 我可以檢查myVar.nodeType,但我可以通過{nodeType:1} 然後被愚弄了,我不知道是否可以這樣做 myVar instanceof Node
編輯 滑稽,似乎有一個Node構造函數,所以instanceof Node的作品,的確如此! 如果我的猜測,詢問工作之前,我應該嘗試... 請不要記住我作爲Check if variable is a
我一直在試圖使用reCAPTCHA到我的反應,應用程序,但時候,一切似乎終於確定我檢查控制檯,發現這樣的警告: Warning: ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly. This DOM node was rendered by 'reCAPTCHA'