{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2215","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2215/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2215/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2215/events","html_url":"https://github.com/vuejs/vue/issues/2215","id":128370799,"number":2215,"title":"如何扩展一个 filter","user":{"login":"eyasliu","id":4774683,"avatar_url":"https://avatars.githubusercontent.com/u/4774683?v=3","gravatar_id":"","url":"https://api.github.com/users/eyasliu","html_url":"https://github.com/eyasliu","followers_url":"https://api.github.com/users/eyasliu/followers","following_url":"https://api.github.com/users/eyasliu/following{/other_user}","gists_url":"https://api.github.com/users/eyasliu/gists{/gist_id}","starred_url":"https://api.github.com/users/eyasliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyasliu/subscriptions","organizations_url":"https://api.github.com/users/eyasliu/orgs","repos_url":"https://api.github.com/users/eyasliu/repos","events_url":"https://api.github.com/users/eyasliu/events{/privacy}","received_events_url":"https://api.github.com/users/eyasliu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-24T04:07:10Z","updated_at":"2016-01-24T15:41:17Z","closed_at":"2016-01-24T15:41:17Z","body":"我想要扩展一个filter，怎么在定义filter的地方调用已有的filter呢？\r\n比如我要根据`currency`过滤器扩展成一个 `rmb`过滤器\r\n\r\n```js\r\nVue.filter('rmb', function(val){\r\n  // 这里如何调用已有的过滤器\r\n  return Xxx.filter.currency(val, '￥');\r\n})\r\n```"}}