After two hours of searching for data, I found that defining variables is so simple that all documents in China are copy, with no technical content;
The data store url I accessed is used to drive the bullet parameters,
1. I define a variable, VAR Params = 'test ';
However, my other JS files have not responded by modifying his values.
2. Ext. Define MyApp. App. config
In the application, requires ['myapp. App. config']
MyApp. App. config. getparams ();
I never gave up.
3. Define in the build:
Var_params:
'Test ';
Setparams: function (ARG ){
This. var_params = ARG
}
Getparams: function (){
Retun this. var_params
}
This method does not work either. It has been depressing for a long time.
4. Finally, I found this method in my foreign documents:
Set it:localStorage.setItem('currentUserId',
userID)
Get it:localStorage.getItem('currentUserId')
This is a great method. The call is successful!