springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 14:22:35
185
我要将输入的名称赋予标题。这是我的textarea和header,它在另一个html文件中:
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
<h1 id="noteheader"></h1>
我试图通过以下代码获取它的值:
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
<h1 id="noteheader"></h1>
但它似乎没有定义,即使我在textarea中键入了一些东西。 我已经用innerHTML、innerText和val尝试过了,它只是给出了一个神秘的输出,比如:
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
<h1 id="noteheader"></h1>
顺晟科技:
您的代码缺少以下内容:
是获取值的JS属性。对于JQuery代码,您有
代码中有太多错误。
这里是纯jQuery版本。
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11