首页 > 其他 > 详细

elementUI中报错<template>' cannot be keyed. Place the key on real elements instead

时间:2021-04-12 16:53:35      阅读:39      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

原因:vue不支持在 template 元素上绑定属性。比如这里想绑定 key 属性就不行。

解决方法:可以改成div或者 不使用template元素做for循环

elementUI中报错<template>' cannot be keyed. Place the key on real elements instead

原文:https://www.cnblogs.com/menxiaojin/p/14647523.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!