After JQ $.extend (true, [], obj) is executed many times, the original variable will still be changed.

let obj1=$.extend (true, [], obj) is executed many times, and after changing the obj1 many times, the obj will also be changed. How to solve this?

Mar.11,2021

according to reason, modifying obj1 will not affect obj. Can you show the complete code?

Menu