Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
436 views
in Technique[技术] by (71.8m points)

关于vue子组件接受props的问题

一个普普通通的props接受 就报了错 百度查了查没有没有什么头绪 各位有没有遇到过类似问题请芒帮忙指教一下

props:{   
   currentMaxSortNo: {
      type: Number,
      default: 0
    }
}

vue.runtime.esm.js:619 [Vue warn]: Error in nextTick: "TypeError: Right-hand side of 'instanceof' is not callable"

换成 普通的 props:['currentMaxSortNo']就没有问题 很是迷惑


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

经过测试,你的这个代码没问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...