# 常用判断

# strIsEmpty

判断属性是否不为空字符(null,undefined也会当做空处理)

sksUtils.strIsEmpty('asus')=false sksUtils.strIsEmpty('')=true
<template>
    <div>
        <el-row>
            sksUtils.strIsEmpty('asus')={{sksUtils.strIsEmpty('asus')}}
        </el-row>
        <el-row>
            sksUtils.strIsEmpty('')={{sksUtils.strIsEmpty('')}}
        </el-row>
    </div>
</template>

<script>
  export default {
    data() {
      return {
      }
    }
  }
</script>
显示代码 复制代码
最后更新时间: 2022/8/27 22:38:44