Цитата:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $.fn.test = function() { console.log(this) }; $({}).test() </script> условно $.fn.plugin = function() { // здесь this объект jquery return this.each(function() { // здесь this элемент }); }; |
рони, :thanks:
|
Часовой пояс GMT +3, время: 13:35. |