解决trim兼容性 String.prototype.trim = function() { return this.replace(/^\s*/g, "").replace(/\s*$/g, "");};