跳到主要内容
版本:Next

目录

  • jquery 自定义工具模板
(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" });
···
见页面测试
  • cssTip
见页面测试