根据对象,返回'&键名=值&键名=值‘形式

 Object.prototype.srcCode=function () {
        var str='';
        for(key in this){
            if (this.hasOwnProperty(key) === true){
                str+="&"+item+"="+this[item]
            }
        };
        return str;
    }

  

posted @ 2018-06-04 16:21  黎明之光123  阅读(1019)  评论(0)    收藏  举报