Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

array content contains object #19

Closed
zhyq0826 opened this issue Jun 6, 2016 · 0 comments
Closed

array content contains object #19

zhyq0826 opened this issue Jun 6, 2016 · 0 comments

Comments

@zhyq0826
Copy link
Member

zhyq0826 commented Jun 6, 2016

数组内容包含object,需要对object 进行序列化

            if(Ember.isArray(model[key])){
                for (let i = 0; i < model[key].length; i++) {
                    if(typeof model[key][i] === 'object' && model[key][i]){
                        model[key][i] = JSON.stringify(model[key][i]);
                    }
                }
            }
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant