1. 程式人生 > >輸入的文本不能為空

輸入的文本不能為空

idt 技術分享 消息 rim asc trim highlight http script

if(!$ask.val().trim()) {
    $.MsgBox.Alert("消息","您的問題不能為空,請輸入文字");
    return;
}

  

技術分享

輸入的文本不能為空