(function ($) {
$.fn.highLight = function (options) {
var defaults = { color: "red", "background-color": "yellow" };
var opts = $.extend(defaults, options);
$(this).css(opts);
};
})(jQuery);
import { Button } from "antd";
···
$("#myDiv").highLight({ color: "#fff" });
···