愿时光能缓,愿故人不散!
var s1 = "get-element-by-id" // 转化为 getElementById var f = function(s) { return s.replace(/-\w/g, function(x) { return x.slice(1).toUpperCase(); }) }
模板引擎实现 查找字符串中出现最多的字符和个数