2015/05/27にLINE社で行われた、Data Binding JS Nightでの発表内容です。Read less
2015/05/27にLINE社で行われた、Data Binding JS Nightでの発表内容です。Read less
11. app/controllers/todos_controller.rb class TodosController < ApplicationController respond_to :html, :json def index respond_to do |format| format.html {} format.json do @todos = Todo.order("created_at asc") respond_with @todos end end end def show @todo = Todo.find(params[:id]) respond_with @todo end def create @todo = Todo.create(params[:todo]) respond_with @todo end def update @todo = Todo.f
11. var namespace = namespace || {}; // コンストラクタ namespace.Klass = function(param) { this.__class__ = callee; this.param = param; }; namespace.Klass.prototype = new BaseKlass; // メソッド namespace.Klass.prototype.method1 = function() { ... }; // メソッド2 namespace.Klass.prototype.method2 = function() { ... };
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く