2014-11-20 4 views

답변

2

당신은 아마 다른 곳에서 오타를 가지고, 그것은 첨부 된 예를

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
    <meta charset="utf-8"> 
 
    <script src="http://ajaxorg.github.io/ace-builds/src/ace.js"></script> 
 
    <style> 
 
    #editor1, #editor2 { position: absolute; top: 0; left: 0; right: 0; bottom: 0;} 
 
    #editor1 {bottom: 50%} 
 
    #editor2 {top: 50%} 
 
    </style> 
 
</head> 
 
<body> 
 
<div id="editor1">var + jshint</div> 
 
<div id="editor2">var + no jshint</div> 
 
<script> 
 
    var editor1 = ace.edit("editor1") 
 
    editor1.session.setMode("ace/mode/javascript"); 
 
    var editor2 = ace.edit("editor2") 
 
    editor2.session.setMode("ace/mode/javascript") 
 
    editor2.session.setOption("useWorker", false); 
 
</script> 
 
</body> 
 
</html>

에서 작동