js调用jquery中的方法

来源:互联网 发布:手机360防蹭网软件 编辑:程序博客网 时间:2024/06/02 05:37

介绍一下js调用jquery的实例

js中:

    function showBc(str){    $().show(str);    }

jq中:


jQuery(document).ready(function($) { $.fn.show = function(id){alert(id);}; }


0 0