如何使用jQuery实现基础的模型数据存取操作?
- 内容介绍
- 文章标签
- 相关推荐
本文共计341个文字,预计阅读时间需要2分钟。
使用jQuery进行简单的数据模型绑定。
javascript(function(global, jQuery) { jQuery.fn.extend({ getModel: function(property) { var that=jQuery(this); var result=new global.Object(); property=property || property; var name=that.data(property); // 省略后续代码... } });})(window, jQuery);
本文共计341个文字,预计阅读时间需要2分钟。
使用jQuery进行简单的数据模型绑定。
javascript(function(global, jQuery) { jQuery.fn.extend({ getModel: function(property) { var that=jQuery(this); var result=new global.Object(); property=property || property; var name=that.data(property); // 省略后续代码... } });})(window, jQuery);

