Browse Source

F10快捷键

maxiaoshan 3 years ago
parent
commit
0b8269f0f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/web/staticres/js/common.js

+ 1 - 1
src/web/staticres/js/common.js

@@ -192,7 +192,7 @@ common.spider.initMirror=function(){
 	editor_4.setSize("auto","300");
 }
 common.spider.setExpert=function(editor,text){
-	text=text.substr(text.indexOf("func"));
+	text=text.substr(text.indexOf("function "));
 	eval(editor+".setValue("+JSON.stringify(text, null, "\t")+")")
 }
 common.spider.guideActive=function(name,li){