日期:2014-05-16 浏览次数:20361 次
<input type="checkbox" value="Hello World!" onchange="alert(this.value;)" onclick="this.blur();" />
"字符串".replace(/^\s+|\s+$/g, "")
>>> "sss".replace(/^\s+|\s+$/g, "") "sss" >>> " sss".replace(/^\s+|\s+$/g, "") "sss" >>> " sss ".replace(/^\s+|\s+$/g, "") "sss" >>> " s s s ".replace(/^\s+|\s+$/g, "") "s s s"