For example, in the above figure, change and slide the different commodities in the lower part of this figure. The part on this figure will monitor and respond to its detailed values. Are there any better solutions that can be reused? Robust solutions include but are not limited to frameworks, template engines, etc.
You can try angularJs’s two-way binding.