I want to create a user name class

Asked 2 years ago, Updated 2 years ago, 86 views

I use nifty mBaaS.I would like to manage the data by using the class name as each user name.Therefore, I wrote the following code to make the class name the user name who is logged in.

var currentUser=NCMB.User.current();
varName=currentUser.get("userName");

varName=NCMB.Object.extend("Name");
var name = new Name();

The class name will be Name.How can I name the class with the name of the logged in user?

monaca

2022-09-30 18:48

1 Answers

varName=NCMB.Object.extend("Name");

"If it's ""Name"", it's going to be ""Name"" of String, so I think they just make it."
I think I should remove but


2022-09-30 18:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.