if( jQuery.isFunction(jQuery.fn.rtFunction) ) { // 如果该方法存在,才去调用 jQuery(document).rtFunction(); }