Created
          August 5, 2017 08:00 
        
      - 
      
- 
        Save cocodrips/b53237041805f15267d574b7e0c51315 to your computer and use it in GitHub Desktop. 
    jsのクラス的なの作る時
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var Test = function () { | |
| console.log('hoge'); | |
| }; | |
| var Klass = function () { | |
| this.init = function () { | |
| console.log('init'); | |
| }; | |
| this.f = function () { | |
| Test(); | |
| }; | |
| this.init(); | |
| }; | |
| k = new Klass(); | |
| k.f(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment