Created
September 9, 2019 06:26
-
-
Save firstfu/27566f83508191036872572481e42d1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## null 表示無值 | |
## undefined 表示沒有定義的變數 | |
##變數設定為- undefined | |
bartimer = void 0; | |
##判斷變數如果不為undefined,則變數設定為undefined | |
if (typeof bartimer != 'undefined'){ | |
bartimer = void 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment