sveltekit双向绑定textarea报错 张小康康 2022-06-03 155 阅读1分钟 图就懒得贴了,报错如下信息: A <textarea> can have either a value attribute or (equivalently) child content, but not both 然后查看官方文档确实是bind:value={value},正常 问题复现 解决办法: 在textarea标签中间不可添加数据 <textarea bind:value={fromData.content} class="cont">这里不能加字符</textarea>