global or local variables in a jquery-plugin
问题 How is it possible to give a jquery-plugin individual local variables, that are accessable in different plugin-functions? My script shows an alert with the content '123', but I am expecting 'abc'. So variable 't' exists only once and not twice for each plugin. So for each plugin-instance there should be also an instance of variable 't'. <html> <head> <title></title> <script type="text/javascript" src="jquery/jquery-1.7.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs