ionic中的this和jquery中的this冲突怎么解决

2025-05-14 04:58:02
推荐回答(1个)
回答1:

$.fn.pluginName = function(opt){} 就是为jquery的prototype定义了函数, 这样, 任何一个jquery对象都可以使用这个成员函数, 这种写法直观明了, 你只要知道的就是$.fn = jQuery.prototype = $.prototype $.fn.extend,