reorganize class name

This commit is contained in:
2026-10-06 14:05:52 +07:00
parent 8a758e5875
commit 17188f6134
13 changed files with 417 additions and 309 deletions
+6 -5
View File
@@ -10,14 +10,15 @@
*******************************************************************/
var cSIMULATOR = function(url, options){
var Simulator = function(options){
var vars = {
'url': '',
'param': []
};
this.construct = function(url, options){
$.extend(vars, options);
vars.url = url;
this.construct = function(options){
if (typeof options == 'object') {
$.extend(vars, options);
} else vars.url = options;
};
this.set_url = function (url){
vars.url = url;
@@ -79,5 +80,5 @@ var cSIMULATOR = function(url, options){
dataType: 'json'
});
};
this.construct(url, options);
this.construct(options);
};