const template = `<div>{{ a + b | c }}</div>` //vue 源码处理的为 _f("${filter}")(${exp}) const staticRenderCode = 'with(this){ return _f(c)(a+b)}' //将code生成handler const staticRenderHandler = new Function(staticRenderCode);