Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
110 views
in Technique[技术] by (71.8m points)

表格里的值如何回显到modal中

image.png
这是一个表格,当我点击编辑的时候,会弹出一个modal
image.png

点击编辑的时候回获取当前行数据,这两个数据一样的,怎么回显都modal中?
image.png

一个一个的写代码太冗余了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

主要还是因为这些字段名不一致,不然直接赋值就完事了,这个前后台统一一下应该就好了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...