Last active
February 18, 2016 03:37
-
-
Save dachi023/3c998c709c3e41a580a8 to your computer and use it in GitHub Desktop.
This file contains 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 _ = require('underscore'); | |
var Backbone = require('backbone'); | |
// 動作確認用にBackboneのModelを作ってみる | |
var MyModel = Backbone.Model.extend({ | |
hello: function() { | |
console.log('hello!!'); | |
} | |
}); | |
var model = new MyModel(); | |
model.hello(); // => コンソールに'hello!!'と表示される |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment