标签:window editor name element control edit val number form
例子 <textarea id="config" name="config" class="form-control"></textarea>
window.editor_two = CodeMirror.fromTextArea(document.getElementById("config"), {
lineNumbers: true,
matchBrackets: true,
styleActiveLine: true
});
var d = {‘config‘: editor_two.getValue() };
解决启用 codemirror后,jquery获取不到textarea 的值
标签:window editor name element control edit val number form
原文地址:http://blog.51cto.com/hequan/2318076