Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バックボーン モデルの一連のプロパティを削除する最良の方法は何ですか。保持したいプロパティで新しいモデルを作成するか、使用していないプロパティを削除することを考えています。このタスクの推奨事項またはより良い解決策はありますか?
バックボーン フレームワーク内にとどまりたい場合は、後で新しい属性 model.clear と .set() を使用します。
それ以外の場合は、model.attributes オブジェクトを直接上書きすることもできます。
プロパティを削除するには、model.unset メソッドを使用します。