标签:style blog io ar color sp on div log
editor.getRange({line:1},{line:2}) // 获取内容块字符
// 替换内容块内容为test editors[‘js‘].replaceRange(‘test‘,{line:2,ch:0},{line:2})
var lineobject = editors.getLineHandle(1) // 获取行对象 Structure { gutterMarkers: Object height: 14 parent: LeafChunk stateAfter: Object styles: Array[11] text: "init:function() {" }
editors.scrollTo(0,1000) // 滚动到x:0,y:1000
标签:style blog io ar color sp on div log
原文地址:http://www.cnblogs.com/huair_12/p/4115543.html