输入的文本不能为空

if(!$ask.val().trim()) {
    $.MsgBox.Alert("消息","您的问题不能为空,请输入文字");
    return;
}

  

原文地址:https://www.cnblogs.com/jiaoyue/p/7458168.html