Vue.compile( template )

Arguments:
    {string} template

Usage:

Compiles a template string into a render function. Only available in the full build.

var res = Vue.compile('<div><span>{{ msg }}</span></div>')

new Vue({
  data: {
    msg: 'hello'
  },
  render: res.render,
  staticRenderFns: res.staticRenderFns
})

See also: Render Functions
Logo

前往低代码交流专区

更多推荐