!str js 裏的非空驗證
即
str!=''&& str !=null && str!=undefined
在封裝代碼中看到的時候,有點迷,然後做了個驗證,僅爲自己記錄
!str js 裏的非空驗證
即
str!=''&& str !=null && str!=undefined
在封裝代碼中看到的時候,有點迷,然後做了個驗證,僅爲自己記錄
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur