- 注册时间
- 2012-12-26
- 最后登录
- 2021-9-29
- 阅读权限
- 10
- 积分
- 800
- 精华
- 0
- 帖子
- 87
|
<div id="divFrame" class="mini-layout" style="width:300px;height:300px">
</div>
<script type="text/javascript"> mini.parse(); var myFrame = mini.get("divFrame"); var obj = new Object(); obj.region = "west"; obj.width = "200"; obj.expanded = false; obj.showCollapseButton = false; obj.showSplit = true; obj.innerText = "aaa"; obj.splitSize = "6"; obj.visible = true; obj.showHeader = false; obj.maxWidth = 250; obj.minWidth = 100; obj.innerHTML = "<a>sadfasdf</a>"; myFrame.addRegion(obj, 0);
var obj2 = new Object(); obj2.region = "east"; obj2.width = "200"; obj2.expanded = false; obj2.showCollapseButton = false; obj2.visible = true; obj2.showHeader = false; obj2.maxWidth = 250; obj2.minWidth = 100; myFrame.addRegion(obj2, 1);
myFrame.updateRegion("west", { visible: true }); myFrame.updateRegion("east", { visible: true }); </script>
//标红的这段话无效果。 我的目的,就是在添加的面板内,放置一个BUTTON或者HREF。请问如何实现?
|
|