问题标签 [getid3]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
280 浏览

typescript - 获取使用 ID 不检索数据并以角度显示

我有一个在两个页面之间导航的小应用程序。一页有值表,并且在表的末尾有一个编辑按钮。单击行末尾的编辑按钮后,该行的值必须作为可编辑表单显示在另一个页面上,该表单已经填充了我使用 GET 使用 ID 的当前行的值。表格即将到来,但默认情况下不填写值。我使用 Angular 8 作为前端,使用 spring boot 作为后端。当我单击编辑按钮时,我在服务器端 Eclipse 控制台中收到如下消息::无法将类型“java.lang.String”的值转换为所需类型“java.lang.Long”;嵌套异常是 java.lang.NumberFormatException:对于输入字符串:“未定义”。

成员.ts:

member.service.ts:

将值列表作为表格的页面:

成员列表.ts:

成员列表.html:

页面具有填充值且可编辑的表单:

更新成员.ts:

更新成员.html:

由于我是角度新手,有人可以指导我吗?