小程序判断输入框是否为空或空格

if(!value.replace(/\s+/g, ‘’).length ==0)