2

Foxx.Model の受け入れられる値を指定する方法はありますか?

次のようなものが理想的です。

var ExampleModel = Foxx.Model.Extend({}, 
{
    attributes: {
        field: { type: "string", required: true, values: ['one', 'two'] }
    }
});

前もって感謝します。

4

1 に答える 1