button
This commit is contained in:
@@ -35,6 +35,12 @@
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
expand_all: function () {
|
||||||
|
this.jm.expand_all()
|
||||||
|
},
|
||||||
|
collapse_all: function () {
|
||||||
|
this.jm.collapse_all()
|
||||||
|
},
|
||||||
loadMind: function () {
|
loadMind: function () {
|
||||||
// 打开已有脑图1、查询数据,组装option 2、实例化jm、show
|
// 打开已有脑图1、查询数据,组装option 2、实例化jm、show
|
||||||
let id = {{ id }};
|
let id = {{ id }};
|
||||||
@@ -116,8 +122,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<input type="button" value="折叠">
|
<input type="button" value="折叠" onclick="xxObj.collapse_all()">
|
||||||
<input type="button" value="展开">
|
<input type="button" value="展开" onclick="xxObj.expand_all()">
|
||||||
</div>
|
</div>
|
||||||
<h3 id="h1" style="text-align: center;"></h3>
|
<h3 id="h1" style="text-align: center;"></h3>
|
||||||
<div id="jsmind_container"/>
|
<div id="jsmind_container"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user