js空白判断

if(blank.match(/^[ ]*$/)) {
    alert("空的");
    return false;
}

 

posted @ 2022-01-08 11:04  微微江水  阅读(73)  评论(0)    收藏  举报