标签: jquery function
我想创建jQuery的扩展程序,例如$.ajax()或$.extend(),但与$("selector").css()不同。
$.ajax()
$.extend()
$("selector").css()
所以我可以调用我的自定义jQuery函数:$.myCustomFunction("args");
$.myCustomFunction("args");
答案 0 :(得分:6)
只需将其分配给jQuery对象。
jQuery
jQuery.myCustomFunction = function() {};