首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

请解释一下这段什么意思?解决方法

2012-02-06 
请解释一下这段什么意思?this.config{blank: ┣━ ,line: ┣━}for(iinthis.config){vartemthis.config[i]t

请解释一下这段什么意思?
this.config={
                                blank: '┣━ ',
              line: '┣━ '
                }
                for(i   in   this.config){
                        var   tem=this.config[i];
                        this.config[i]=new   Image();
                        this.config[i].txt=tem;}

this.config是什么写法,是结构体吗?


[解决办法]
是包含两个属性的对象实例。
相当于this.config = new Object();
this.config.blank= "┣━ ";
this.config.line= "┣━ ";

this.config 本身也是某类(js function)的属性.

热点排行