2
衆所周知MS向VS 2008 SP1添加了JavaScript格式。但不幸的是,它在此代碼上失敗:Visual Studio 2008和JavaScript中的括號格式
var viewport = new Ext.Viewport({
layout: "border",
items: [{
region: "center",
contentEl: "center"
}, {
region: "south",
contentEl: "south"
}, {
region: "west",
contentEl: "west"
}] // This bracket is misplaced
});
viewport.render();
有什麼方法可以解決它嗎?它在VS 2010中修復了嗎?