jquery - accessing a hidden function with javascript -


Hello, I have some custom functions wrapped in a jQuery document. Most of these functions are used within that function and work, but this is the case where I want to use the function contained in the field from the global field. how can I do this?

No, but you can name the function and send it to .ready () :

  var myFunctionName = function (params) {// Do things} // Function ready for callback (document) for jQuery .ready (myFunctionName); // Access directly to any other function like: myFunctionName ('paramaters');    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -