1234567891011121314151617181920 |
- export function stringHasText(string) {
- return string !== '' && string !== null && string !== undefined
- }
- export function numberNotZero(number) {
- return number !== 0 && number !== null && number !== undefined
- }
- export function jsonParamIsTrue(param) {
- return param !== undefined && param !== null && param === true
- }
- //获取星期几
- export function getDay(num) {
- if (num < 0 || num > 6) {
- return null
- }
- let day = new Array("日", "一", "二", "三", "四", "五", "六")
- return '周' + day[num]
- }
|