标签:
jquery字符串相等判断
注意空格!
$.trim(string1) == $.trim(string2)
------------------------------------------------------------------------
去掉字符串起始和结尾的空格: jQuery.trim(str);
$.trim(" hello, how are you? ");
"hello, how are you?"
标签:
原文地址:http://my.oschina.net/u/1450300/blog/377685