2011-07-26 36 views
0

表现不同出于某种原因,当我Aptana的JS编辑器格式道场,田间的JavaScript的此块的Aptana Studio的独立JS自动套用格式从Eclipse插件版本

var eventInput = new dijit.form.Select({ 
    name : 'event', 
    options : [{ 
     label : 'Today', 
     value : 'event-today', 
     selected : true 
    }, { 
     label : 'Upcoming Birthday', 
     value : 'event-birthday1' 
    }, { 
     label : 'Recent Birthday', 
     value : 'event-birthday2' 
    }, { 
     label : 'Other', 
     value : 'event-other' 
    }] 
}).placeAt('event-group'); 

当autoformatted

var eventInput = new dijit.form.Select({ 
name : 'event', 
options : [{ 
label : 'Today', 
value : 'event-today', 
selected : true 
}, { 
label : 'Upcoming Birthday', 
value : 'event-birthday1' 
}, { 
label : 'Recent Birthday', 
value : 'event-birthday2' 
}, { 
label : 'Other', 
value : 'event-other' 
}] 
}).placeAt('event-group'); 
标签被销毁

类似的块如本

dojo.create('p', { 
    id : 'subject-group' 
}, 'form'); 

表ats正确,保存标签。

Aptana的Eclipse插件版本没有这样做并且格式不正确。这发生在Aptana Studio 3的普通版本上,没有任何插件或修改。有没有人遇到过这个?

回答

相关问题