JavaScript: What is the equivalent of PHP's "$this->$somefunc()"? -


Is it possible to store the name of the function as a string in JS, and open it from the object, much like PHP Is the code down?

  $ this-> $ SomeFunc ();  

  this [someFunc] ();  

Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -