JavaScript 检测字符串中是否有空格window.onload = function (){ var str = "字符串"; if (str.indexOf(" ") == -1) { alert("没有空格"); } ...
確定! 回上一頁