jsEnginScriptError:Component is not found, 自定义组件?
发布于 5 年前 作者 jun28 13759 次浏览 来自 问答

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    show: { type: Boolean, value: false },
    con: { type: String, value: 'cs' }
  },
 
  /**
   * 组件的初始数据
   */
  ready() {
  },
  /**
   * 组件的方法列表
   */
  methods: {
  
    computedCon() {
    
    },
    /**
     * 切换隐藏展示
     */
    toggleShow() {
      this.setData({
        show: !this.data.show
      })
    },
    /**
     * 提交
     */
    confirm() {
      let that = this;
      this.setData({
        show: false
      })
    }
  }
})

开发者工具没问题,真机调试页面问题, 基础库也调了, 就是报错 快点来人呀, 线上一直报错, 你说要报错就早报出来

引用的地方

"comment":"../common/comment/index",
   "voteRule":"../common/messageBox/messageBox"
3 回复

not found 引用地址出错了,改成绝对地址。

截图看下页面结构

是哪里写错了,线上的基础库也改了, 改到2.7.0 也试了下不行

回到顶部