打杂的 Be 主前端后端都写 哭唧唧

function isEmpty(str) {
    if(typeof str== null || str== "" || str== "undefined") {
        return true;
    } else {
        return false;
    }
}

  

if(isEmpty(ind_vue.params.userId)) {
    console.log("userId");
}
if(isEmpty(ind_vue.params.dayStart)) {
    console.log("dayStart");
}
if(isEmpty(ind_vue.params.dayEnd)) {
    console.log("dayEnd");
}
if(isEmpty(ind_vue.params.timeStart)) {
    console.log("timeStart");
}
if(isEmpty(ind_vue.params.timeEnd)) {
    console.log("timeEnd");
}

  

相关文章:

  • 2021-12-04
  • 2022-02-21
  • 2022-02-04
  • 2021-05-31
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-12-04
  • 2021-12-04
  • 2021-12-14
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案