更好,更轻松的解决方案是将CodeMirror实例的readOnly属性设置为true,如下所示: $('.code').each(function() { var $this = $(this), $code = $this.html(); ...
確定! 回上一頁