jQuery.extend({
abc:function(){alert("abc")},
})
-------------------------
$(document).ready(function(){
$("#show").click(function(){
$.abc()
});
})
以及
jQuery.fn.extend({
abc:function(){alert("abc")},
})
-------------------------
$(document).ready(function(){
$("#show").click(function(){
$(this).abc()
});
})
在FF有用,在IE下总是报错