美文网首页
面向对象 读取配置信息

面向对象 读取配置信息

作者: panw3i | 来源:发表于2017-12-24 15:17 被阅读4次
function Rect(config) {

    // var this = new Object();
    for (var i  in config) {
        this[i] = config[i];
    }

    // return this;
}


// 共
React.prototype = {

    // 指回
    constructor:Rect;

    //  stroke.call(this,arguments);
    stroke:function(){
        console.log(this.key);
    }
}

相关文章

网友评论

      本文标题:面向对象 读取配置信息

      本文链接:https://www.haomeiwen.com/subject/uqrhgxtx.html