The method of extjs to assign a value to a property in the object of the component

that's right
form.getViewModel().set('activateCode',response.responseText);
 
that's right
var model=form.getViewModel();
model.set('activateCode',response.responseText);
 
That's right too
var model=form.getViewModel();
model.set('activateCode',response.responseText);
form.setViewModel(model);
 At the beginning, the last two methods were tried many times and they were wrong, but they were all right again. Writing a big generation is like hitting a big luck.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326104624&siteId=291194637