摘要: var reg=/\\|\//g; var a="a\a\\a/b" alert(a.replace(reg,"-")); 阅读全文
posted @ 2016-05-13 18:01 wavemelody 阅读(5521) 评论(1) 推荐(1) 编辑
摘要: function isValue(o) { return (this.isObject(o) || this.isString(o) || this.isNumber(o) || this.isBoolean(o)); } function isString(o) { return typeof o === 'string'; } function isObject(o){ ... 阅读全文
posted @ 2016-05-13 10:50 wavemelody 阅读(350) 评论(0) 推荐(0) 编辑