在YUI3中,有没有办法“重置”模型到以前保存的值?
我在 yui3 中使用模型,虽然有像 Reset() 和 undo() 这样的函数,但它们并不能完全实现我正在寻找的功能。
我在不同时间设置值,但可能想撤消上次保存之前的所有内容...此时有办法这样做吗?
I'm using models in yui3, and although there are functions like reset() and undo(), they don't quite accomplish what I'm looking for.
I set values at different times, but may want to just undo everything to the point of the last save... is there a way to do so at this time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 3.5.0pr2 中(pr2 目前在 Yahoo! CDN 上;3.5.0 GA 将于 3 月中旬发布),您可以尝试如下操作:
In 3.5.0pr2 (pr2 is currently on the Yahoo! CDN; 3.5.0 GA will be released in mid-March), you can try something like this: