javascript - Changing object in Array -
var tab = new auitab({ element: document.getelementbyid("footer"), index: 1, repeatclick: false }, function(ret) { if (ret.index == 1) { bottomnav1(); } if (ret.index == 2) { var login_name = $api.getstorage('mobile'); if (typeof(login_name) != "undefined") { profile(); } else { login(); auitab.index = 1; } } });
i want change index value in array. can see, tried updating using auitab.index = 1
, tab = 1
(one of them should've worked according google). both did not work - new programming. there not aware of?
Comments
Post a Comment