| | |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | | <#button btnCss="info" name="保存" id="ensure" icon="fa-check" clickFun="add();" /> |
| | | <#button btnCss="info" name="关闭" id="close" icon="fa-check" clickFun="closeD();" /> |
| | | </div> |
| | | </div> |
| | | <label for="sort">*排 序:</label> |
| | |
| | | </div> |
| | | </div> |
| | | <script type="text/javascript"> |
| | | /** |
| | | * 关闭此对话框 |
| | | */ |
| | | function closeD(){ |
| | | console.log("关闭"); |
| | | parent.layer.close(window.parent.TQuestion.layerIndex); |
| | | } |
| | | const data1 = { |
| | | content:"", |
| | | sort:null, |
| | | answer:"" |
| | | } |
| | | }; |
| | | var editor_1 = null; |
| | | $(function () { |
| | | //初始化编辑器 |
| | |
| | | data1.content = value1; |
| | | data1.sort = value2; |
| | | data1.answer =editor_1.getContent(); |
| | | console.log(data1); |
| | | submitData(data1); |
| | | } |
| | | function submitData(data) { |