(e)
| 497 | |
| 498 | // 获取背景颜色值 |
| 499 | function getColorValue(e) { |
| 500 | let rgbValueArry = window.getComputedStyle(e).backgroundColor.replace(/rgba|rgb|\(|\)| /g, '').split (',') |
| 501 | return parseInt(rgbValueArry[0] + rgbValueArry[1] + rgbValueArry[2]) |
| 502 | } |
| 503 | |
| 504 | |
| 505 | // 判断当前是白天还是晚上 |