开发者社区> 问答> 正文

vue自定义组件里面可以在加入div等其他元素吗

QQ图片20190808110337.png

这种方式无效,有其他方法可以在自定义组件里面嵌套的吗

我在html里边引用了vue,js文件,然后在实例化vue的时候说Vue is not defined ,network里边是有加载出vue.js的

var app = new Vue({
            el: "#app",
            computed: {
                noMore() {
                    return this.count >= 20
                },
                disabled() {
                    return this.loading || this.noMore
                }
            },

            methods: {
                load() {
                    this.loading = true;
                    setTimeout(() => {
                        this.count += 2
                        this.loading = false
                    }, 2000)

本问题来自阿里云开发者社区的【11大垂直技术领域开发者社群】。 https://developer.aliyun.com/article/706511 点击链接欢迎加入感兴趣的技术领域群。

展开
收起
游客mxpnxp6g3cq7o 2019-08-08 11:06:33 897 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Vue.js 在前端服务化上的探索与实践 立即下载
利用编译将 Vue 组件转成 React 组件 立即下载
Vue.js在前端服务化上的实践与探索 立即下载