Passing variables in jquery

后端 未结 4 1994
小鲜肉
小鲜肉 2021-01-25 04:52

What is the best way to pass the var full to function b. I don\'t want to use global variables. Is return the only option.



        
4条回答
  •  难免孤独
    2021-01-25 04:58

    argument? is there something im missing here?

    function b(x){ alert(x); }; 
    

    call with

    b(full);
    

提交回复
热议问题