0
我的代碼是:jQuery UI的佈局硬編碼/方法
$(document).ready(function(){
var outerLayout;
var layoutSettings_Outer = {
.
.
.
};
outerLayout = $("#layout").layout(layoutSettings_Outer);
.
.
.
});
和身體我使用:
<div id="layout">
<div class="ui-layout-center">
<div>
<a href="#" onClick="outerLayout.open('east'); return false;">Close left side</a>
</div>
</div>
<div class="ui-layout-east">
Right Panel
</div>
<div class="ui-layout-west">
Left Panel
</div>
</div>
的問題是,應該鏈接關閉'東部' - 左側佈局(中)。不幸的是,它沒有。我不知道該怎麼辦...
The Firefox's console says: "ReferenceError: outerLayout is not defined".
BTW - The whole layout works perfectly so JavaScript can see those divs.