javascript中的instance和typeof

1. typeof操作符     typeof操作符可以用來判斷變量的數據類型。     對於值類型有四種結果(undefined、string、number、boolean)     對於引用類型有兩種結果(function、object)     注意:typeof null==object; 2, instanceof操作符       instanceof操作符用來判斷引用類型。     
相關文章
相關標籤/搜索