¡@

Home 

2014/10/16 ¤W¤È 12:05:35

jquery Programming Glossary: myblah

Is this how you define a function in jQuery?

http://stackoverflow.com/questions/907634/is-this-how-you-define-a-function-in-jquery

define a function in jQuery document .ready function var MyBlah function blah alert blah Now to call the function I do MyBlah.. function blah alert blah Now to call the function I do MyBlah 'hello' javascript jquery share improve this question First.. inside another function an anonymous one in this case MyBlah will not be accessible from the global scope. Here's an example..

Is this how you define a function in jQuery?

http://stackoverflow.com/questions/907634/is-this-how-you-define-a-function-in-jquery

this how you define a function in jQuery Is this how you define a function in jQuery document .ready function var MyBlah function blah alert blah Now to call the function I do MyBlah 'hello' javascript jquery share improve this question.. a function in jQuery document .ready function var MyBlah function blah alert blah Now to call the function I do MyBlah 'hello' javascript jquery share improve this question First of all your code works and that's a valid way of creating.. JavaScript jQuery aside but because you are declaring a function inside another function an anonymous one in this case MyBlah will not be accessible from the global scope. Here's an example document .ready function var MyBlah function blah alert..