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
4.1k views
in Technique[技术] by (71.8m points)

循环数组里面的对象,再去通过Key绑定对象,但是操作的为什么是同一个变量

image.png
为什么input循环到req_data里面的对象,里面result_data对象在循环,操作的同一个input绑定的变量
image.png
image.png


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

1 Answer

0 votes
by (71.8m points)

那你是不是应该考虑看看赋值的位置,是不是使用同一个对象了?

最好jsrun复现一下。

目前看上去不像是有问题的


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

...