摘要: var format = function(str, obj){ var data = obj; if(typeof data === 'object'){ return str.replace(/\{... 阅读全文