问题描述
Element 'project' cannot have character [children], because the type's content type is element-only.
元素 'project' 不能有字符 [children],因为该类型的内容类型是仅元素。
![Element 'project' cannot have character [children], because the type's content type is element-only.](https://img-blog.csdnimg.cn/a0c8644054784d54b08eb5621d4cd546.png)
解决方案:
检查代码,删除多余的代码
我当时的问题是:不小心多打了一个k
,这个代码块里面不会报错,多了一个字符很难发现,不过找到后删掉即可。
此为新手笔记,仅供参考。
不足之处,欢迎交流指正!