Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.99 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function Apple (type) {}
  2.  
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. var apple = {
  6.     type: "macintosh",
  7.     color: "red",
  8.     getInfo: function () {
  9.         return this.color + ' ' + this.type + ' apple';
  10.     }
  11. }
  12.  
  13. //////////////////////////////////////////////////////////////////////
  14.  
  15. GLGE.MD2=function(uid){}
  16.  
  17. //////////////////////////////////////////////////////////////////////
  18.  
  19. (function(GLGE){})(GLGE);
  20.  
  21. //////////////////////////////////////////////////////////////////////
  22.  
  23. window.Namespace = {};
  24. Namespace.Apple = function(type){}
  25.  
  26. //////////////////////////////////////////////////////////////////////
  27.  
  28. myClass.prototype = {
  29.         myProperty:this is a string”,
  30.         myMethod:function(parms){
  31.                 //method logic here
  32.         }
  33. }
  34.  
  35. //////////////////////////////////////////////////////////////////////
  36.  
  37. function MyClass()
  38. {
  39. }
  40.  
  41. MyClass.prototype.doSomething = function()
  42. {
  43. };
  44.  
  45. //////////////////////////////////////////////////////////////////////