html = html.replace(/\{\{([^}]+)\}\}/g, function () { console.log(arguments[1]); })这是匹配{{name}}这种,arguments[1]是取到()里的值,这里是取到name