1x 代码:它正在工作。
this.$compile(this.$els.ajaxcontent);
2x 迁移:
this.$compile(this.$refs.ajaxcontent);
// Error: $compile function not found.
Vue.compile(this.$refs.ajaxcontent);
// Error: template.trim not a function.
Vue.compile($('#ajaxContent').get(0));
// Error: template.trim not a function.
编译文档:http: //vuejs.org/api/#Vue-compile