判斷是否是顏色

   判斷顏色的正則:blog      const hexColors = /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/ const rgbColors = /^[rR][gG][Bb][Aa]?[\(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?),){2}[\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-
相關文章
相關標籤/搜索