2018年9月30日
摘要: var test = " "; //为空或全部为空格 if (test.match(/^[ ]*$/)) { console.log("all space or empty"); } var test = " \n "; //var test = " "; if(test.match(/^\s+$/)){ console.log("... 阅读全文
posted @ 2018-09-30 16:47 LJD泊水 阅读(19018) 评论(1) 推荐(0)