fix IE bug

This commit is contained in:
echo 2018-01-20 13:56:44 +08:00
parent efe8138a2d
commit f47eefeea8
3 changed files with 5 additions and 3 deletions

View File

@ -47,6 +47,7 @@ body{
white-space: pre;
border: 1px solid #ddd;
border-radius: 2px;
overflow: auto;
}
#editTip{
position: absolute;

View File

@ -56,7 +56,7 @@ var editArea = new Vue({
if(val=='') return;
if(that.formatArr()){
that.error = 0;
clearTimeout(that.formatTimer);
setTimeout(function(){
that.mapArr = that.formatArr();
that.drawMap();
@ -98,7 +98,8 @@ var editArea = new Vue({
},
formatArr: function(){
var formatArrStr = '';
var that = this;
clearTimeout(that.formatTimer);
if(this.mapArr.split(/\D+/).join(' ').trim().split(' ').length != 169) return false;
var arr = this.mapArr.replace(/\s+/g, '').split('],[');

View File

@ -663,7 +663,7 @@ editor.info
var editor = new editor();
editor.init();
editor.fs=fs;
editor.file=editor_file;
// editor.file=editor_file;
</script>
<script>
// 文件相关操作