本帖最后由 hu602060803 于 2013-05-14 21:32:52 编辑

解决方案 »

  1.   

    function show(obj){
    alert(obj);
    return this;
     
    }
    show ("111")("222");
    看的第一眼我就在想 能运行吗return arguments.callee;
      

  2.   

    各种混乱
    function show(obj){
    alert(obj);
    return arguments.callee;
     
    }
    show ("111")("222");
    function css(attr, value){
    if(arguments.length==2){
    alert("参照jquery的css方法,改变属性")
    }else{
    alert("参照jquery的css方法,读取属性")
    }
    }
      

  3.   

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <script type="text/javascript">
        var $ = function() {
         return shili;
        } || {};
        var shili;
        shili = new $();
        $.prototype.show = function() {
        alert('show');
        return this;
    }$.prototype.hide = function() {
        alert('hide');
        return this;
    }$.show = function() {
    alert('show');
        return this;
    }$.hide = function() {
    alert('hide');
        return this;
    }$.show().hide();
        </script>
        <style type="text/css">

        </style>
        </head>
        <body>
        
        </body>
        </html>一切理论都是纸老虎,实践里出政权