摘要:
var reg=/\\|\//g; var a="a\a\\a/b" alert(a.replace(reg,"-")); 阅读全文
摘要:
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){ ... 阅读全文