问:如何使用Vue.$compile在Vue3运行时编译函数?我使用Vue2中的函数。例如:
Vue.compile('<custom-component />');发布于 2021-10-30 12:26:25
import {compile} from "vue"
compile('<custom-component />')这就是全部,几乎是一样的!
然后你可以这样做
render() {
return h(compile('<custom-component />'))
}https://stackoverflow.com/questions/68981411
复制相似问题