I have a large backbone model that is fairly complex and contains nested arrays and objects.
If I clone using the backbone method, like this:
var model2 = model1.clone();
It will clone the top-level properties and arrays, but anything deeper, is not cloned at all.
Is there a backbone way of cloning the entire backbone model?
Thanks!
https://stackoverflow.com/questions/67393951/how-do-you-clone-an-entire-backbone-model May 05, 2021 at 09:05AM
没有评论:
发表评论