java - 如何将输入分配给变量?
问题描述
当我尝试运行此代码时,它显示: index.html?descricao=:14 Uncaught TypeError: Cannot set property 'value' of null at index.html?descricao=:14
java code: var inputValue = document.getElementById("reply").value;
html: <textarea id="reply" name="reply" onKeyPress="enterpressalert(event, this)"></textarea>
解决方案
推荐阅读
- hybris - 如何修改 Hybris 中电子邮件的回复字段?
- node.js - 如何将文件上传到 elasticbeanstalk 以进行应用配置?
- mysql - 修复“settings.DATABASES 配置不正确。请提供 ENGINE 值。有关详细信息,请查看设置文档。”
- javascript - 如何遍历列表并应用 jQuery 来更改类
- visual-studio-code - VS Code 不会在 jupyter notebook / ipynb 文件中自动缩进
- python - 我该如何解决这个“ValueError:没有足够的值来解包(预期为 3,得到 2)”?
- python - 如何在 Win 10 上为 conda 初始化 shell?
- authentication - Blazor webassembly - IdentityServer EventSink 和 HttpContext
- r - 在 R 日期中创建,时间间隔以 Unix 时间戳格式增加 10 毫秒
- random-forest - 使用随机森林模型从新数据集中预测值