我无法成功设置jquery-layout插件的选项。默认情况下可以正确渲染,但选项不起作用。我尝试在文档准备好时设置resizable和slidable,但当我弹出resizable时它返回false。有人能发现这里出了什么问题吗?
js:
$(document).ready(function() {
var myLayout = $('body').layout({
west: {
resizable: true,
resizeWhileDragging: true,
slidable: true
}
});
alert(myLayout.options.west.resizable); //returns false
});
html:
<body>
<div class="ui-layout-center">Center
<div id="board">
</div>
<button onclick="set_board();">New Game!</button>
<button onclick="execute_turn();">Turn!</button>
</div>
<div class="ui-layout-east">East</div>
<div class="ui-layout-west">West</div>
</body>
.layout
API,请告诉我,我可能能帮到你,谢谢。 - Tats_innit