0

为什么他们将带有值的 HTML 标记存储在 data-prototype 中,而不是将其存储为值?这会导致大量重复数据。

4

1 回答 1

0

data-prototype attribute hold the html of collection item. You can get this html, insert in form and you get new collection item. You can`t store it as real html in form cause it would be sended to server spite of the fact that this field can be invisible. You can put it iutside the form using render tag and access later using js.

于 2013-07-02T10:21:21.640 回答