摘要:
亿图绘制 阅读全文
摘要:
描述:去掉字符串起始和结尾的空格。jQuery 代码:$.trim(" hello, how are you? ");结果:"hello, how are you?"应用举例:验证输入的用户名或密码是否为空var username = $("#username").val();var password = $("#password").val();if($.trim(username).length==0||$.trim(password).length==0){ $("#errorTitle" 阅读全文