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