¡@

Home 

2014/10/16 ¤W¤È 12:02:44

jquery Programming Glossary: currentnewinfo

javascript - How to make this code work? [duplicate]

http://stackoverflow.com/questions/16472577/javascript-how-to-make-this-code-work

. You can give each callback access to a copy by simply adding a second function to your code this .click function currentNewInfo return function '#box2' .text currentNewInfo new_info What I'm doing here is creating a function that takes an argument.. by simply adding a second function to your code this .click function currentNewInfo return function '#box2' .text currentNewInfo new_info What I'm doing here is creating a function that takes an argument and calling it immediately. I pass new_info as.. creating a function that takes an argument and calling it immediately. I pass new_info as an argument so the value of currentNewInfo will be what new_info holds at that time aka a copy The function I called IIFE or Immediately Invoked Function Expression..