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.
我有个问题。我有 YUI DataTable,我需要将它转换为 JS 对象。但是我没有找到标准的方法。如果有人知道,如何解决这个问题 - 请回答。谢谢你。
Since YUI 3.5.0 you just need to do datatable.get('data').toJSON(). datatable.get('data') now returns a Y.ModelList which in turn has a toJSON method.
datatable.get('data').toJSON()
datatable.get('data')
Y.ModelList
toJSON