请注意,此方案在循环中使用正则表达式检测字符串尾部的字符是否空格,尽管使用正则表达式增加了一点性能负担,但它允许你根据浏览器定义空格字符列表,以保持简短和兼容性。
Although using a regex for this adds a bit of performance overhead, it lets you defer the list of whitespace characters to the browser for the sake of brevity and compatibility.
交之前你最好检查一下你是否已经把所有的空格都填写好了。
You'd better check whether you have filled out all the blanks before you hand it in.
用户经常不确定是否应该在邮编中包含一个空格。
Users often are not sure if they should include a space in a postcode.
表达式的其余部分用来检查值(去掉头尾的空格之后)是否是空字符串。
The rest of the expression is used to see if the value (without leading or trailing blanks) is an empty string.
这是因为xml语法分析器不知道文本数据——令人头疼的空格——是否重要。
That's because an XML parser has no idea whether that textual data — that annoying whitespace — is meant to be important.
首先,一个特定值的实际出现可能表明是否存在问题,例如由于null值、空格等造成的不完整的值。
First, the actual occurrence of a specific value may indicate whether there are issues such as incomplete data by the presence of a Null value, a Space, and so on.
在必须研究细微的差异时(例如,注释的末尾是否有空格),这个特性尤其有用。
This is particularly useful when small differences have to be investigated (for example, is the trailing white space part of the annotation?).
在是否使用缩进代码的空格或制表符永无休止的辩论中,我更喜欢空间。
In the never-ending debate over whether to use SPACEs or TABs for indenting code, I prefer SPACEs.
你输入的域名不是正确,或者暂不支持此域名查询,请检查域名格式或看是否有空格。
You enter the domain name is not correct, or does not support this domain name query, please check the domain name format or to see whether there is space.
检查您输出的空格和换行是否和题目要求一致。
Check your output for Spaces, blank lines, etc against the problem output specification.
一般以原来申请入学时的护照号码或”888888”为密码,请注意原有护照上的字母是否有大小写及与数字之间的空格。
The original password is your passport number when applying for study or "888888", please be careful if there are capital letters (alphabets) on your passport or space between numbers and letters.
你注意看这句话了吗?是否工程名字或路径包含有非英文字符或空格。
Invalid project name. Please rename project with a valid name. Name must not contain spaces or special characters.
如果某个选项带有参数,则该选项的说明指定在选项和参数之间是否允许有空格。
If an option takes an argument, the option's description documents whether a space is allowed between the option and the arguments.
如果某个选项带有参数,则该选项的说明指定在选项和参数之间是否允许有空格。
If an option takes an argument, the option's description documents whether a space is allowed between the option and the arguments.
应用推荐