Skip to content

Instantly share code, notes, and snippets.

@Layzie
Created December 12, 2012 01:54
Show Gist options
  • Select an option

  • Save Layzie/4264179 to your computer and use it in GitHub Desktop.

Select an option

Save Layzie/4264179 to your computer and use it in GitHub Desktop.
markdown test

JSON.stringifyから呼び出され、モデルのattributes属性のコピーを返します。このメソッドはViewに渡す前に属性値を永続化/シリアライズするために使用されます。実際にはJSON文字列を返すわけではないので、メソッド名はいささか混乱を招くかもしれませんが、JavaScriptのtoJSONとJSON.stringifyもそのように動作します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment